summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-17 16:38:43 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-17 16:38:43 -0500
commit7925000f075c5350cb1e5f822e4c04a140db5b3c (patch)
treece66930c4f43fd18e6cdcb5e7f1f76de65409f5e
parentf768ec873b77b1aa1323ba2e13a02144e30fda4b (diff)
Do not show column dropdown on the public view
-rw-r--r--app/Template/board/table_column.php30
1 files changed, 17 insertions, 13 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php
index b345c04e..8c97f7d5 100644
--- a/app/Template/board/table_column.php
+++ b/app/Template/board/table_column.php
@@ -25,21 +25,25 @@
<?php endif ?>
<span class="board-column-title">
- <span class="dropdown">
- <a href="#" class="dropdown-menu"><?= $this->e($column['title']) ?> <i class="fa fa-caret-down"></i></a>
- <ul>
- <li>
- <i class="fa fa-minus-square fa-fw"></i>
- <a href="#" class="board-toggle-column-view" data-column-id="<?= $column['id'] ?>"><?= t('Hide this column') ?></a>
- </li>
- <?php if ($this->user->hasProjectAccess('BoardPopover', 'closeColumnTasks', $column['project_id']) && $column['nb_tasks'] > 0): ?>
+ <?php if ($not_editable): ?>
+ <?= $this->e($column['title']) ?>
+ <?php else: ?>
+ <span class="dropdown">
+ <a href="#" class="dropdown-menu"><?= $this->e($column['title']) ?> <i class="fa fa-caret-down"></i></a>
+ <ul>
<li>
- <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') ?>
+ <i class="fa fa-minus-square fa-fw"></i>
+ <a href="#" class="board-toggle-column-view" data-column-id="<?= $column['id'] ?>"><?= t('Hide this column') ?></a>
</li>
- <?php endif ?>
- </ul>
- </span>
+ <?php if ($this->user->hasProjectAccess('BoardPopover', 'closeColumnTasks', $column['project_id']) && $column['nb_tasks'] > 0): ?>
+ <li>
+ <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>
<?php if (! $not_editable && ! empty($column['description'])): ?>