diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-20 20:40:50 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-20 20:40:50 -0400 |
commit | 88a1120d9b4fde8b3e8cddad6d2be3cdd9fbf806 (patch) | |
tree | b2f052e71a7f10ee345a4077acc85af90da97233 /app/Templates/comment_show.php | |
parent | 6f527f2055a5dbd51a6e3e35d7a7e9d9ccdf2517 (diff) |
Fix broken links (Markdown content) for public boards (#319)
Diffstat (limited to 'app/Templates/comment_show.php')
-rw-r--r-- | app/Templates/comment_show.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app/Templates/comment_show.php b/app/Templates/comment_show.php index 5069120d..b2ccc25a 100644 --- a/app/Templates/comment_show.php +++ b/app/Templates/comment_show.php @@ -21,7 +21,20 @@ <?php endif ?> <div class="markdown"> - <?= Helper\markdown($comment['comment']) ?> + <?php if (isset($is_public) && $is_public): ?> + <?= Helper\markdown( + $comment['comment'], + array( + 'controller' => 'task', + 'action' => 'readonly', + 'params' => array( + 'token' => $project['token'] + ) + ) + ) ?> + <?php else: ?> + <?= Helper\markdown($comment['comment']) ?> + <?php endif ?> </div> </div> |