summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-02-19 14:50:16 -0800
committerFrédéric Guillot <fred@kanboard.net>2019-02-19 14:50:16 -0800
commit2251066a3c69d0f9e919f5fd39a83a7286819351 (patch)
tree433d1b833ccf5404d6b50a1d91a8e620a01c2b3e
parent23417da7638868962e23667791b4b3c43c76195f (diff)
Always display task accordion elements
-rw-r--r--app/Template/task/show.php86
1 files changed, 37 insertions, 49 deletions
diff --git a/app/Template/task/show.php b/app/Template/task/show.php
index 892d62f2..659d4caf 100644
--- a/app/Template/task/show.php
+++ b/app/Template/task/show.php
@@ -7,59 +7,47 @@
'editable' => $this->user->hasProjectAccess('TaskModificationController', 'edit', $project['id']),
)) ?>
-<?php if (!empty($task['description'])): ?>
- <?= $this->hook->render('template:task:show:before-description', array('task' => $task, 'project' => $project)) ?>
- <?= $this->render('task/description', array('task' => $task)) ?>
-<?php endif ?>
+<?= $this->hook->render('template:task:show:before-description', array('task' => $task, 'project' => $project)) ?>
+<?= $this->render('task/description', array('task' => $task)) ?>
-<?php if(!empty($subtasks)): ?>
- <?= $this->hook->render('template:task:show:before-subtasks', array('task' => $task, 'project' => $project)) ?>
- <?= $this->render('subtask/show', array(
- 'task' => $task,
- 'subtasks' => $subtasks,
- 'project' => $project,
- 'editable' => $this->user->hasProjectAccess('SubtaskController', 'edit', $project['id']),
- )) ?>
-<?php endif ?>
+<?= $this->hook->render('template:task:show:before-subtasks', array('task' => $task, 'project' => $project)) ?>
+<?= $this->render('subtask/show', array(
+ 'task' => $task,
+ 'subtasks' => $subtasks,
+ 'project' => $project,
+ 'editable' => $this->user->hasProjectAccess('SubtaskController', 'edit', $project['id']),
+)) ?>
-<?php if (!empty($internal_links)): ?>
- <?= $this->hook->render('template:task:show:before-internal-links', array('task' => $task, 'project' => $project)) ?>
- <?= $this->render('task_internal_link/show', array(
- 'task' => $task,
- 'links' => $internal_links,
- 'project' => $project,
- 'link_label_list' => $link_label_list,
- 'editable' => $this->user->hasProjectAccess('TaskInternalLinkController', 'edit', $project['id']),
- 'is_public' => false,
- )) ?>
-<?php endif ?>
+<?= $this->hook->render('template:task:show:before-internal-links', array('task' => $task, 'project' => $project)) ?>
+<?= $this->render('task_internal_link/show', array(
+ 'task' => $task,
+ 'links' => $internal_links,
+ 'project' => $project,
+ 'link_label_list' => $link_label_list,
+ 'editable' => $this->user->hasProjectAccess('TaskInternalLinkController', 'edit', $project['id']),
+ 'is_public' => false,
+)) ?>
-<?php if (!empty($external_links)): ?>
- <?= $this->hook->render('template:task:show:before-external-links', array('task' => $task, 'project' => $project)) ?>
- <?= $this->render('task_external_link/show', array(
- 'task' => $task,
- 'links' => $external_links,
- 'project' => $project,
- )) ?>
-<?php endif ?>
+<?= $this->hook->render('template:task:show:before-external-links', array('task' => $task, 'project' => $project)) ?>
+<?= $this->render('task_external_link/show', array(
+ 'task' => $task,
+ 'links' => $external_links,
+ 'project' => $project,
+)) ?>
-<?php if (!empty($files) || !empty($images)): ?>
- <?= $this->hook->render('template:task:show:before-attachments', array('task' => $task, 'project' => $project)) ?>
- <?= $this->render('task_file/show', array(
- 'task' => $task,
- 'files' => $files,
- 'images' => $images
- )) ?>
-<?php endif ?>
+<?= $this->hook->render('template:task:show:before-attachments', array('task' => $task, 'project' => $project)) ?>
+<?= $this->render('task_file/show', array(
+ 'task' => $task,
+ 'files' => $files,
+ 'images' => $images
+)) ?>
-<?php if (!empty($comments)): ?>
- <?= $this->hook->render('template:task:show:before-comments', array('task' => $task, 'project' => $project)) ?>
- <?= $this->render('task_comments/show', array(
- 'task' => $task,
- 'comments' => $comments,
- 'project' => $project,
- 'editable' => $this->user->hasProjectAccess('CommentController', 'edit', $project['id']),
- )) ?>
-<?php endif ?>
+<?= $this->hook->render('template:task:show:before-comments', array('task' => $task, 'project' => $project)) ?>
+<?= $this->render('task_comments/show', array(
+ 'task' => $task,
+ 'comments' => $comments,
+ 'project' => $project,
+ 'editable' => $this->user->hasProjectAccess('CommentController', 'edit', $project['id']),
+)) ?>
<?= $this->hook->render('template:task:show:bottom', array('task' => $task, 'project' => $project)) ?>