From 7c4bdea324d8074ffcc3fa353fcfd85ee8066634 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 14 Feb 2015 21:03:25 -0500 Subject: Add board filter: collapse/expand tasks --- app/Template/board/filters.php | 8 ++ app/Template/board/show.php | 3 +- app/Template/board/swimlane.php | 8 +- app/Template/board/task.php | 148 ++++++++++--------------------------- app/Template/board/task_footer.php | 45 +++++++++++ app/Template/board/task_public.php | 26 +++++++ 6 files changed, 124 insertions(+), 114 deletions(-) create mode 100644 app/Template/board/task_footer.php create mode 100644 app/Template/board/task_public.php (limited to 'app/Template') diff --git a/app/Template/board/filters.php b/app/Template/board/filters.php index 0e9c4d5f..db2108ab 100644 --- a/app/Template/board/filters.php +++ b/app/Template/board/filters.php @@ -46,5 +46,13 @@
  • +
  • + + + + +
  • \ No newline at end of file diff --git a/app/Template/board/show.php b/app/Template/board/show.php index 5fbb576c..dc524737 100644 --- a/app/Template/board/show.php +++ b/app/Template/board/show.php @@ -1,4 +1,3 @@ - @@ -25,4 +24,4 @@ )) ?> -
    + \ No newline at end of file diff --git a/app/Template/board/swimlane.php b/app/Template/board/swimlane.php index f0a00fc1..ec5272f3 100644 --- a/app/Template/board/swimlane.php +++ b/app/Template/board/swimlane.php @@ -26,13 +26,13 @@ e($column['title']) ?> - + - + - + (/e($column['task_limit']) ?>) @@ -65,7 +65,7 @@ - render('board/task', array( + render($not_editable ? 'board/task_public' : 'board/task', array( 'project' => $project, 'task' => $task, 'categories' => $categories, diff --git a/app/Template/board/task.php b/app/Template/board/task.php index 638078c3..5f73a5c2 100644 --- a/app/Template/board/task.php +++ b/app/Template/board/task.php @@ -1,31 +1,3 @@ - - -
    - - a('#'.$task['id'], 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> - - - - () - - - -  -  - - - - - - - - - -
    - a($this->e($task['title']), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> -
    - - -
    -