diff options
Diffstat (limited to 'app/Template/task')
-rw-r--r-- | app/Template/task/description.php | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/app/Template/task/description.php b/app/Template/task/description.php index 9ffe8589..f8e313dd 100644 --- a/app/Template/task/description.php +++ b/app/Template/task/description.php @@ -4,29 +4,7 @@ </div> <div class="accordion-content"> <article class="markdown"> - <?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 ?> + <?= $this->text->markdown($task['description'], isset($is_public) && $is_public) ?> </article> </div> -</section>
\ No newline at end of file +</section> |