summaryrefslogtreecommitdiff
path: root/app/Controller/CommentListController.php
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/Controller/CommentListController.php
parentf5ff8e388e92f2b834adfcefca2744b9808b4eac (diff)
Compact comment list view on board task icon hover
Diffstat (limited to 'app/Controller/CommentListController.php')
-rw-r--r--app/Controller/CommentListController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Controller/CommentListController.php b/app/Controller/CommentListController.php
index 63d20663..95c221cc 100644
--- a/app/Controller/CommentListController.php
+++ b/app/Controller/CommentListController.php
@@ -18,11 +18,14 @@ class CommentListController extends BaseController
$task = $this->getTask();
$commentSortingDirection = $this->userMetadataCacheDecorator->get(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, 'ASC');
+ $compactView = $this->request->getIntegerParam('compact', 0);
+
$this->response->html($this->template->render('comment_list/show', array(
'project' => $project,
'task' => $task,
'comments' => $this->commentModel->getAll($task['id'], $commentSortingDirection),
'editable' => $this->helper->user->hasProjectAccess('CommentController', 'edit', $task['project_id']),
+ 'compact' => (bool)$compactView,
)));
}