diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-19 18:14:20 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-19 18:14:20 -0400 |
commit | 401b0bdfb10ebfe75c9a392de52d37cc3c22c062 (patch) | |
tree | 841bf69b8d404a29ab92692a9ebfb8d5a7e500e1 /app/Template/task/description.php | |
parent | fcdd71af2cabdd1252172ac83a24be8672ca34cc (diff) |
Split task controller into smaller classes
Diffstat (limited to 'app/Template/task/description.php')
-rw-r--r-- | app/Template/task/description.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/Template/task/description.php b/app/Template/task/description.php new file mode 100644 index 00000000..f823e7d6 --- /dev/null +++ b/app/Template/task/description.php @@ -0,0 +1,33 @@ +<?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)): ?> + <?= $this->text->markdown( + $task['description'], + array( + 'controller' => 'task', + 'action' => 'show', + 'params' => array( + 'project_id' => $task['project_id'] + ) + ) + ) ?> + <?php else: ?> + <?= $this->text->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 |