diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-03 21:59:48 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-03 21:59:48 -0500 |
commit | 9fb2e711899ae328a7a09295468793ffbc16c27c (patch) | |
tree | 1efba503386d939c61767f8fbbf006dcfdcd6a34 /app/Template/task/show_description.php | |
parent | 8a02ceb40e88c27777a95251083bc21629d62bb0 (diff) |
Move tasks templates to a subfolder
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 |