|
|
@@ -48,7 +48,9 @@ ${ layout.menubar(section=component) }
|
|
|
|
|
|
<!-- ko if: editing() -->
|
|
|
<div class="pull-right privilege-actions" data-bind="visible: grantOption() || $root.is_sentry_admin">
|
|
|
+ <!-- ko if: $root.component() != 'solr' -->
|
|
|
<a title="${ _('Grant this privilege') }" class="pointer" style="margin-right: 4px" data-bind="click: function(){ $root.grantToPrivilege($data); $('#grantPrivilegeModal').modal('show'); }"><i class="fa fa-send"></i></a>
|
|
|
+ <!-- /ko -->
|
|
|
<a class="pointer" style="margin-right: 4px" data-bind="click: function() { if (editing()) { editing(false); }}"><i class="fa fa-eye"></i></a>
|
|
|
<a class="pointer" style="margin-right: 4px" data-bind="click: remove"><i class="fa fa-times"></i></a>
|
|
|
</div>
|
|
|
@@ -77,7 +79,9 @@ ${ layout.menubar(section=component) }
|
|
|
<!-- /ko -->
|
|
|
|
|
|
<div class="new-line-if-small">
|
|
|
+ <!-- ko if: $root.component() != 'solr' -->
|
|
|
<label class="checkbox"><input type="checkbox" data-bind="checked: grantOption"> ${ _('With grant') }</label>
|
|
|
+ <!-- /ko -->
|
|
|
<a class="pointer showAdvanced" data-bind="click: function(){ showAdvanced(true); }, visible: ! showAdvanced()"><i class="fa fa-cog"></i> ${ _('Show advanced') }</a>
|
|
|
<a class="pointer showAdvanced" data-bind="click: function(){ showAdvanced(false); }, visible: showAdvanced()"><i class="fa fa-cog"></i> ${ _('Hide advanced') }</a>
|
|
|
<div class="clearfix"></div>
|
|
|
@@ -91,7 +95,9 @@ ${ layout.menubar(section=component) }
|
|
|
<!-- ko ifnot: editing() -->
|
|
|
<!-- ko ifnot: $root.isApplyingBulk() -->
|
|
|
<div class="pull-right privilege-actions" data-bind="visible: grantOption() || $root.is_sentry_admin">
|
|
|
+ <!-- ko if: $root.component() != 'solr' -->
|
|
|
<a title="${ _('Grant this privilege') }" class="pointer" style="margin-right: 4px" data-bind="click: function(){ $root.grantToPrivilege($data); $('#grantPrivilegeModal').modal('show'); }"><i class="fa fa-send"></i></a>
|
|
|
+ <!-- /ko -->
|
|
|
<a title="${ _('Edit this privilege') }" class="pointer" style="margin-right: 4px" data-bind="visible: $root.is_sentry_admin, click: function() { if (! editing()) { editing(true); }}"><i class="fa fa-pencil"></i></a>
|
|
|
<a title="${ _('Delete this privilege') }" class="pointer" style="margin-right: 4px" data-bind="visible: $root.is_sentry_admin, click: remove"><i class="fa fa-times"></i></a>
|
|
|
</div>
|