* If have not pivot-design/edit/delete permision, do not show after class.

This commit is contained in:
songchenxuan
2023-07-26 09:08:23 +08:00
parent 8a25a4192a
commit 30e1b6e398
2 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -22,8 +22,9 @@
.flex-between {display:flex; justify-content: space-between;}
.flex-start {display:flex; justify-content: flex-start;}
.query-after {position: relative; padding-right: 24px; padding-top: 1px;}
.query-after::after {content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background-color: #F1F5F9;}
.query-after {padding-right: 8px; padding-top: 1px;}
.query-pseudo {position: relative; padding-right: 24px; padding-top: 1px;}
.query-pseudo::after {content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background-color: #F1F5F9;}
#filterMargin {padding-top: 8px; padding-bottom: 5px;}
.pivot-design {padding-left: 24px; padding-right: 12px;}
+4 -3
View File
@@ -39,11 +39,12 @@
<?php endif;?>
</div>
<div class='flex-start'>
<?php echo html::a('#', "{$lang->pivot->showOrigin}", '', "id='origin-query' class='query-after btn-query-origin' title='{$lang->pivot->showOrigin}'");?>
<?php echo html::a('#', "{$lang->pivot->showPivot}", '', "id='pivot-query' class='query-after btn-query hidden' title='{$lang->pivot->showPivot}'");?>
<?php $clickable = $this->pivot->isClickable($pivot, 'design');?>
<?php $showLine = ($clickable and (common::hasPriv('pivot', 'design') or common::hasPriv('pivot', 'edit') or common::hasPriv('pivot', 'delete'))) ? 'query-pseudo' : 'query-after';?>
<?php echo html::a('#', "{$lang->pivot->showOrigin}", '', "id='origin-query' class='$showLine btn-query-origin' title='{$lang->pivot->showOrigin}'");?>
<?php echo html::a('#', "{$lang->pivot->showPivot}", '', "id='pivot-query' class='$showLine btn-query hidden' title='{$lang->pivot->showPivot}'");?>
<?php
$clickable = $this->pivot->isClickable($pivot, 'design');
$params = helper::safe64Encode("dimensionID=$pivot->dimension&groupID=$pivot->group&pivotID=$pivot->id");
$class = !empty($pivot->used) ? "btn-design" : '';