diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-11 17:32:58 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-11 17:32:58 -0500 |
commit | 2c4509641103fa94a31c89e0e9f1a2d6088e57b1 (patch) | |
tree | adfab7e6efcdbf8c41edd8fec8d7f22597f29c24 /app/Template/board/task_footer.php | |
parent | 8bf054a480ecc2d31b857cb27bd6256f1efdd74c (diff) |
Do not display comment icon link in public view
Diffstat (limited to 'app/Template/board/task_footer.php')
-rw-r--r-- | app/Template/board/task_footer.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index 4e561f14..74c1b74d 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -96,14 +96,18 @@ <?php endif ?> <?php if ($task['nb_comments'] > 0): ?> - <?= $this->modal->medium( - 'comments-o', - $task['nb_comments'], - 'CommentListController', - 'show', - array('task_id' => $task['id'], 'project_id' => $task['project_id']), - $task['nb_comments'] == 1 ? t('%d comment', $task['nb_comments']) : t('%d comments', $task['nb_comments']) - ) ?> + <?php if ($not_editable): ?> + <span title="<?= $task['nb_comments'] == 1 ? t('%d comment', $task['nb_comments']) : t('%d comments', $task['nb_comments']) ?>"><i class="fa fa-comments-o"></i> <?= $task['nb_comments'] ?></span> + <?php else: ?> + <?= $this->modal->medium( + 'comments-o', + $task['nb_comments'], + 'CommentListController', + 'show', + array('task_id' => $task['id'], 'project_id' => $task['project_id']), + $task['nb_comments'] == 1 ? t('%d comment', $task['nb_comments']) : t('%d comments', $task['nb_comments']) + ) ?> + <?php endif ?> <?php endif ?> <?php if (! empty($task['description'])): ?> |