kc-tabs-role.html 1.3 KB

12345678910111213141516
  1. <div data-ng-controller="RoleTabCtrl">
  2. <h1 data-ng-hide="create">{{role.name|capitalize}} <i id="removeRole" class="pficon pficon-delete clickable" data-ng-show="!create && access.manageRealm"
  3. data-ng-hide="changed" data-ng-click="remove()"></i></h1>
  4. <h1 data-ng-show="create">{{:: 'add-role' | translate}}</h1>
  5. <ul class="nav nav-tabs" data-ng-show="!create">
  6. <li ng-class="{active: !path[4]}"><a href="#/realms/{{realm.realm}}/roles/{{role.id}}">{{:: 'details' | translate}}</a></li>
  7. <li ng-class="{active: path[4] == 'role-attributes'}"><a href="#/realms/{{realm.realm}}/roles/{{role.id}}/role-attributes">{{:: 'attributes' | translate}}</a></li>
  8. <li ng-class="{active: path[4] == 'permissions'}" data-ng-show="serverInfo.featureEnabled('ADMIN_FINE_GRAINED_AUTHZ') && access.manageRealm && access.manageAuthorization">
  9. <a href="#/realms/{{realm.realm}}/roles/{{role.id}}/permissions">{{:: 'authz-permissions' | translate}}</a>
  10. <kc-tooltip>{{:: 'manage-permissions-role.tooltip' | translate}}</kc-tooltip>
  11. </li>
  12. <li ng-class="{active: path[4] == 'users'}" data-ng-show="access.manageRealm && access.manageAuthorization">
  13. <a href="#/realms/{{realm.realm}}/roles/{{role.id}}/users">{{:: 'authz-users' | translate}}</a></li>
  14. </ul>
  15. </div>