|
|
@@ -205,7 +205,12 @@ ${ layout.menubar(section='hive') }
|
|
|
<a data-bind="visible: $root.assist.privileges().length > 0, click: function(){ $root.showCreateRole(true); $('#createRoleModal').modal('show'); }" class="btn pointer"><i class="fa fa-plus-circle"></i> ${ _('Add role') }</a>
|
|
|
</div>
|
|
|
<h4 style="margin-top: 4px">${ _('Privileges') } <i class="fa fa-spinner fa-spin" data-bind="visible: $root.isLoadingPrivileges()"></i></h4>
|
|
|
- <div data-bind="visible: $root.assist.privileges().length == 0 && ! $root.isLoadingPrivileges()"><em class="muted">${ _('No privileges found for the selected item.')} <a class="pointer" data-bind="click: function(){ $root.showCreateRole(true); $('#createRoleModal').modal('show'); }">${ _('Click here to add a new role.') }</a> </em></div>
|
|
|
+ <div data-bind="visible: $root.assist.privileges().length == 0 && ! $root.isLoadingPrivileges()">
|
|
|
+ <div class="span10 offset1 center" style="cursor: pointer" data-bind="click: function(){ $root.showCreateRole(true); $('#createRoleModal').modal('show'); }">
|
|
|
+ <i class="fa fa-plus-circle waiting"></i>
|
|
|
+ <h1 class="emptyMessage">${ _('No privileges found for the selected item') }<br/><a class="pointer">${ _('Click here to add a new role') }</a></h1>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div data-bind="visible: $root.assist.privileges().length == 0 && $root.isLoadingPrivileges()"><em class="muted">${ _('Loading privileges...')}</em></div>
|
|
|
<div data-bind="template: { name: 'role', foreach: $root.assist.roles }"></div>
|
|
|
</div>
|
|
|
@@ -223,7 +228,7 @@ ${ layout.menubar(section='hive') }
|
|
|
<div class="card-body">
|
|
|
<div class="span10 offset1 center" style="cursor: pointer" data-bind="visible: $root.roles().length == 0, click: function(){ $root.showCreateRole(true); $('#createRoleModal').modal('show'); }">
|
|
|
<i class="fa fa-plus-circle waiting"></i>
|
|
|
- <h1 class="emptyMessage">${ _('There are currently no roles defined.') }<br/><a class="pointer">${ _('Click here to add') }</a> ${ _('one.') }</h1>
|
|
|
+ <h1 class="emptyMessage">${ _('There are currently no roles defined') }<br/><a class="pointer">${ _('Click here to add') }</a> ${ _('one') }</h1>
|
|
|
</div>
|
|
|
<div class="clearfix" data-bind="visible: $root.roles().length == 0"></div>
|
|
|
<div data-bind="visible: $root.roles().length > 0">
|