diff options
Diffstat (limited to 'app/Template/task/show_description.php')
-rw-r--r-- | app/Template/task/show_description.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Template/task/show_description.php b/app/Template/task/show_description.php new file mode 100644 index 00000000..25312149 --- /dev/null +++ b/app/Template/task/show_description.php @@ -0,0 +1,24 @@ +<?php if (! empty($task['description'])): ?> + <div id="description" class="task-show-section"> + <div class="page-header"> + <h2><?= t('Description') ?></h2> + </div> + + <article class="markdown task-show-description"> + <?php if (! isset($is_public)): ?> + <?= Helper\markdown($task['description']) ?> + <?php else: ?> + <?= Helper\markdown( + $task['description'], + array( + 'controller' => 'task', + 'action' => 'readonly', + 'params' => array( + 'token' => $project['token'] + ) + ) + ) ?> + <?php endif ?> + </article> + </div> +<?php endif ?>
\ No newline at end of file |