Do not show column dropdown on the public view

This commit is contained in:
Frederic Guillot
2016-01-17 16:38:43 -05:00
parent f768ec873b
commit 7925000f07

View File

@@ -25,21 +25,25 @@
<?php endif ?> <?php endif ?>
<span class="board-column-title"> <span class="board-column-title">
<span class="dropdown"> <?php if ($not_editable): ?>
<a href="#" class="dropdown-menu"><?= $this->e($column['title']) ?> <i class="fa fa-caret-down"></i></a> <?= $this->e($column['title']) ?>
<ul> <?php else: ?>
<li> <span class="dropdown">
<i class="fa fa-minus-square fa-fw"></i> <a href="#" class="dropdown-menu"><?= $this->e($column['title']) ?> <i class="fa fa-caret-down"></i></a>
<a href="#" class="board-toggle-column-view" data-column-id="<?= $column['id'] ?>"><?= t('Hide this column') ?></a> <ul>
</li>
<?php if ($this->user->hasProjectAccess('BoardPopover', 'closeColumnTasks', $column['project_id']) && $column['nb_tasks'] > 0): ?>
<li> <li>
<i class="fa fa-close fa-fw"></i> <i class="fa fa-minus-square fa-fw"></i>
<?= $this->url->link(t('Close all tasks of this column'), 'BoardPopover', 'confirmCloseColumnTasks', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> <a href="#" class="board-toggle-column-view" data-column-id="<?= $column['id'] ?>"><?= t('Hide this column') ?></a>
</li> </li>
<?php endif ?> <?php if ($this->user->hasProjectAccess('BoardPopover', 'closeColumnTasks', $column['project_id']) && $column['nb_tasks'] > 0): ?>
</ul> <li>
</span> <i class="fa fa-close fa-fw"></i>
<?= $this->url->link(t('Close all tasks of this column'), 'BoardPopover', 'confirmCloseColumnTasks', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?>
</li>
<?php endif ?>
</ul>
</span>
<?php endif ?>
</span> </span>
<?php if (! $not_editable && ! empty($column['description'])): ?> <?php if (! $not_editable && ! empty($column['description'])): ?>