diff options
Diffstat (limited to 'app/Template/comment_list')
-rw-r--r-- | app/Template/comment_list/show.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Template/comment_list/show.php b/app/Template/comment_list/show.php index 4b6b765d..bac77b5b 100644 --- a/app/Template/comment_list/show.php +++ b/app/Template/comment_list/show.php @@ -1,6 +1,6 @@ <div class="page-header"> <h2><?= $this->text->e($task['title']) ?></h2> - <?php if (!isset($is_public) || !$is_public): ?> + <?php if ((!isset($is_public) || !$is_public) && !$compact): ?> <ul> <li> <?= $this->url->icon('sort', t('Change sorting'), 'CommentListController', 'toggleSorting', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'js-modal-replace') ?> @@ -19,12 +19,12 @@ 'comment' => $comment, 'task' => $task, 'project' => $project, - 'editable' => $editable, + 'editable' => $editable && !$compact, 'is_public' => isset($is_public) && $is_public, )) ?> <?php endforeach ?> - <?php if ($editable): ?> + <?php if ($editable && !$compact): ?> <?= $this->render('comment_list/create', array( 'task' => $task, )) ?> |