summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Template/comments/show.php10
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,