From 854457baf0043b51ce9c30f36a6fecaed97cb04d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 18 Mar 2016 21:00:14 -0400 Subject: Improve task summary sections --- app/Template/task_external_link/show.php | 72 ++++++------------------------- app/Template/task_external_link/table.php | 42 ++++++++++++++++++ 2 files changed, 54 insertions(+), 60 deletions(-) create mode 100644 app/Template/task_external_link/table.php (limited to 'app/Template/task_external_link') diff --git a/app/Template/task_external_link/show.php b/app/Template/task_external_link/show.php index e9339e86..8ed11803 100644 --- a/app/Template/task_external_link/show.php +++ b/app/Template/task_external_link/show.php @@ -1,60 +1,12 @@ -
-

text->e($task['title']) ?>

-
- - - - -

- - - - - - - - - user->hasProjectAccess('TaskExternalLink', 'edit', $task['project_id'])): ?> - - - - - - - - - - - user->hasProjectAccess('TaskExternalLink', 'edit', $task['project_id'])): ?> - - - - -
- - - text->e($link['title']) ?> - - text->e($link['dependency_label']) ?> - - text->e($link['creator_name'] ?: $link['creator_username']) ?> - - dt->date($link['date_creation']) ?> - - -
- +
+
+

+
+
+ render('task_external_link/table', array( + 'links' => $links, + 'task' => $task, + 'project' => $project, + )) ?> +
+
diff --git a/app/Template/task_external_link/table.php b/app/Template/task_external_link/table.php new file mode 100644 index 00000000..d1cdeca1 --- /dev/null +++ b/app/Template/task_external_link/table.php @@ -0,0 +1,42 @@ + + + + + + + + user->hasProjectAccess('TaskExternalLink', 'edit', $task['project_id'])): ?> + + + + + + + + + + + user->hasProjectAccess('TaskExternalLink', 'edit', $task['project_id'])): ?> + + + + +
+ + + text->e($link['title']) ?> + + text->e($link['dependency_label']) ?> + + text->e($link['creator_name'] ?: $link['creator_username']) ?> + + dt->date($link['date_creation']) ?> + + +
\ No newline at end of file -- cgit v1.2.3