From 88a1120d9b4fde8b3e8cddad6d2be3cdd9fbf806 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 20 Oct 2014 20:40:50 -0400 Subject: Fix broken links (Markdown content) for public boards (#319) --- app/Templates/comment_show.php | 15 ++++++++++++++- app/Templates/task_comments.php | 2 ++ app/Templates/task_public.php | 20 +++++++++++++++++--- app/Templates/task_show.php | 2 +- app/Templates/task_show_description.php | 15 ++++++++++++++- 5 files changed, 48 insertions(+), 6 deletions(-) (limited to 'app/Templates') 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 @@
- + + 'task', + 'action' => 'readonly', + 'params' => array( + 'token' => $project['token'] + ) + ) + ) ?> + + +
diff --git a/app/Templates/task_comments.php b/app/Templates/task_comments.php index 12deff98..5cfa99ce 100644 --- a/app/Templates/task_comments.php +++ b/app/Templates/task_comments.php @@ -8,7 +8,9 @@ $comment, 'task' => $task, + 'project' => $project, 'not_editable' => isset($not_editable) && $not_editable, + 'is_public' => isset($is_public) && $is_public, )) ?> diff --git a/app/Templates/task_public.php b/app/Templates/task_public.php index 3f44ceec..13fef1ed 100644 --- a/app/Templates/task_public.php +++ b/app/Templates/task_public.php @@ -4,10 +4,24 @@

$project['token'])) ?>

- $task)) ?> + $task, + 'project' => $project, + 'is_public' => true + )) ?> - $task, 'subtasks' => $subtasks, 'not_editable' => true)) ?> + $task, + 'subtasks' => $subtasks, + 'not_editable' => true + )) ?> - $task, 'comments' => $comments, 'not_editable' => true)) ?> + $task, + 'comments' => $comments, + 'project' => $project, + 'not_editable' => true, + 'is_public' => true, + )) ?> \ No newline at end of file diff --git a/app/Templates/task_show.php b/app/Templates/task_show.php index 0964a8f0..ec5d5da4 100644 --- a/app/Templates/task_show.php +++ b/app/Templates/task_show.php @@ -4,4 +4,4 @@ $task, 'subtasks' => $subtasks)) ?> $timesheet)) ?> $task, 'files' => $files)) ?> - $task, 'comments' => $comments)) ?> \ No newline at end of file + $task, 'comments' => $comments, 'project' => $project)) ?> \ No newline at end of file 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 @@
- + + + + 'task', + 'action' => 'readonly', + 'params' => array( + 'token' => $project['token'] + ) + ) + ) ?> +
\ No newline at end of file -- cgit v1.2.3