summaryrefslogtreecommitdiff
path: root/app/Templates/task_show_description.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-20 20:40:50 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-20 20:40:50 -0400
commit88a1120d9b4fde8b3e8cddad6d2be3cdd9fbf806 (patch)
treeb2f052e71a7f10ee345a4077acc85af90da97233 /app/Templates/task_show_description.php
parent6f527f2055a5dbd51a6e3e35d7a7e9d9ccdf2517 (diff)
Fix broken links (Markdown content) for public boards (#319)
Diffstat (limited to 'app/Templates/task_show_description.php')
-rw-r--r--app/Templates/task_show_description.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/Templates/task_show_description.php b/app/Templates/task_show_description.php
index 67a38444..25312149 100644
--- a/app/Templates/task_show_description.php
+++ b/app/Templates/task_show_description.php
@@ -5,7 +5,20 @@
</div>
<article class="markdown task-show-description">
- <?= Helper\markdown($task['description']) ?: t('There is no 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