From 7b20a14e8df545080fd5f1e98d31a763a51af517 Mon Sep 17 00:00:00 2001
From: Olivier Maridat <olivier.maridat@trialog.com>
Date: Tue, 8 Mar 2016 11:12:18 +0100
Subject: Enhance task link view to mimic the subtask view

---
 app/Template/task/public.php | 12 ++++++------
 app/Template/task/show.php   |  1 +
 2 files changed, 7 insertions(+), 6 deletions(-)

(limited to 'app/Template/task')

diff --git a/app/Template/task/public.php b/app/Template/task/public.php
index 7edf097c..0052214a 100644
--- a/app/Template/task/public.php
+++ b/app/Template/task/public.php
@@ -10,6 +10,12 @@
         'is_public' => true,
     )) ?>
 
+    <?= $this->render('subtask/show', array(
+        'task' => $task,
+        'subtasks' => $subtasks,
+        'editable' => false
+    )) ?>
+
     <?= $this->render('tasklink/show', array(
         'task' => $task,
         'links' => $links,
@@ -18,12 +24,6 @@
         'is_public' => true,
     )) ?>
 
-    <?= $this->render('subtask/show', array(
-        'task' => $task,
-        'subtasks' => $subtasks,
-        'editable' => false
-    )) ?>
-
     <?= $this->render('task/comments', array(
         'task' => $task,
         'comments' => $comments,
diff --git a/app/Template/task/show.php b/app/Template/task/show.php
index 56ecdf76..5dc27ca1 100644
--- a/app/Template/task/show.php
+++ b/app/Template/task/show.php
@@ -25,6 +25,7 @@
 <?= $this->render('tasklink/show', array(
     'task' => $task,
     'links' => $links,
+    'project' => $project,
     'link_label_list' => $link_label_list,
     'editable' => true,
     'is_public' => false,
-- 
cgit v1.2.3