diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-19 12:26:08 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-19 12:26:08 -0400 |
commit | fe85d83621224b7f5ff29b12c57c4fee1caafc4a (patch) | |
tree | a7a13d49b7ffdb20f705f3058ec28823f25ef116 /app | |
parent | b9bb0888422587a58221f103945105cba32e38e2 (diff) |
Do not show comment sorting link on public board
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/comments/show.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/Template/comments/show.php b/app/Template/comments/show.php index ccc1d9cc..76af5593 100644 --- a/app/Template/comments/show.php +++ b/app/Template/comments/show.php @@ -3,10 +3,12 @@ <h3><a href="#" class="fa accordion-toggle"></a> <?= t('Comments') ?></h3> </div> <div class="accordion-content" id="comments"> - <div class="comment-sorting"> - <i class="fa fa-sort"></i> - <?= $this->url->link(t('change sorting'), 'comment', 'toggleSorting', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> - </div> + <?php if (!isset($is_public) || !$is_public): ?> + <div class="comment-sorting"> + <i class="fa fa-sort"></i> + <?= $this->url->link(t('change sorting'), 'comment', 'toggleSorting', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + </div> + <?php endif ?> <?php foreach ($comments as $comment): ?> <?= $this->render('comment/show', array( 'comment' => $comment, |