summaryrefslogtreecommitdiff
path: root/app/Template/comment_list
diff options
context:
space:
mode:
authorDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 16:55:54 +0100
committerDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 16:55:54 +0100
commit3bfd7f2ef080235915ce27a494cef1b8f772bc05 (patch)
treede173dc829d81f03a7c0d3c86fd418ca5605c8eb /app/Template/comment_list
parentf5ff8e388e92f2b834adfcefca2744b9808b4eac (diff)
Compact comment list view on board task icon hover
Diffstat (limited to 'app/Template/comment_list')
-rw-r--r--app/Template/comment_list/show.php6
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,
)) ?>