From 16e14b76a6dc2eca028fa08c0db9a9651f16bfd9 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 26 Sep 2015 19:04:58 -0400 Subject: Change swimlane layout to save space on the screen --- app/Template/board/private_view.php | 18 ----- app/Template/board/public_view.php | 11 --- app/Template/board/table_column.php | 51 ++++++++++++++ app/Template/board/table_container.php | 24 +++++-- app/Template/board/table_swimlane.php | 120 ++++++--------------------------- app/Template/board/table_tasks.php | 28 ++++++++ app/Template/board/task_private.php | 2 +- app/Template/board/view_private.php | 18 +++++ app/Template/board/view_public.php | 11 +++ 9 files changed, 150 insertions(+), 133 deletions(-) delete mode 100644 app/Template/board/private_view.php delete mode 100644 app/Template/board/public_view.php create mode 100644 app/Template/board/table_column.php create mode 100644 app/Template/board/table_tasks.php create mode 100644 app/Template/board/view_private.php create mode 100644 app/Template/board/view_public.php (limited to 'app/Template/board') diff --git a/app/Template/board/private_view.php b/app/Template/board/private_view.php deleted file mode 100644 index d4c2c651..00000000 --- a/app/Template/board/private_view.php +++ /dev/null @@ -1,18 +0,0 @@ -
- - render('project/filters', array( - 'project' => $project, - 'filters' => $filters, - 'categories_list' => $categories_list, - 'users_list' => $users_list, - 'is_board' => true, - )) ?> - - render('board/table_container', array( - 'project' => $project, - 'swimlanes' => $swimlanes, - 'board_private_refresh_interval' => $board_private_refresh_interval, - 'board_highlight_period' => $board_highlight_period, - )) ?> - -
diff --git a/app/Template/board/public_view.php b/app/Template/board/public_view.php deleted file mode 100644 index aea72031..00000000 --- a/app/Template/board/public_view.php +++ /dev/null @@ -1,11 +0,0 @@ -
- - render('board/table_container', array( - 'project' => $project, - 'swimlanes' => $swimlanes, - 'board_private_refresh_interval' => $board_private_refresh_interval, - 'board_highlight_period' => $board_highlight_period, - 'not_editable' => true, - )) ?> - -
\ No newline at end of file diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php new file mode 100644 index 00000000..bfb18a26 --- /dev/null +++ b/app/Template/board/table_column.php @@ -0,0 +1,51 @@ + + + + + + + +
+ + + +
+ + +
+ +
+ url->link('+', 'taskcreation', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover', t('Add a new task')) ?> +
+ + + + e($column['title']) ?> + + + + '> + + + + + + +   + + + + + + (/e($column['task_limit']) ?>) + + + + () + + +
+ + + + diff --git a/app/Template/board/table_container.php b/app/Template/board/table_container.php index 98b40eb4..b20426a6 100644 --- a/app/Template/board/table_container.php +++ b/app/Template/board/table_container.php @@ -13,18 +13,34 @@ > - + + $swimlane): ?>

- render('board/table_swimlane', array( + + render('board/table_column', array( + 'swimlane' => $swimlane, + 'not_editable' => isset($not_editable), + )) ?> + + + 1): ?> + render('board/table_swimlane', array( + 'project' => $project, + 'swimlane' => $swimlane, + 'not_editable' => isset($not_editable), + )) ?> + + + render('board/table_tasks', array( 'project' => $project, 'swimlane' => $swimlane, - 'board_highlight_period' => $board_highlight_period, - 'hide_swimlane' => count($swimlanes) === 1, 'not_editable' => isset($not_editable), + 'board_highlight_period' => $board_highlight_period, )) ?> + diff --git a/app/Template/board/table_swimlane.php b/app/Template/board/table_swimlane.php index af74cbbe..dd38fc97 100644 --- a/app/Template/board/table_swimlane.php +++ b/app/Template/board/table_swimlane.php @@ -1,104 +1,26 @@ + - - - - - - - - - - - - - - - - - () - - - e($swimlane['name']) ?> - - - - - - - -
- - - -
-
- -
- url->link('+', 'taskcreation', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover', t('Add a new task')) ?> -
- - - - e($column['title']) ?> + + + + + + + + + e($swimlane['name']) ?> + + + + + - - '> - - - - - - -   - - - - - - (/e($column['task_limit']) ?>) - - - - () - - -
+ + () + - - - - - - - e($swimlane['name']) ?> - - - - - - -
- - render($not_editable ? 'board/task_public' : 'board/task_private', array( - 'project' => $project, - 'task' => $task, - 'board_highlight_period' => $board_highlight_period, - 'not_editable' => $not_editable, - )) ?> - -
-
-
-
- e($column['title']) ?> -
-
-
- - - \ No newline at end of file diff --git a/app/Template/board/table_tasks.php b/app/Template/board/table_tasks.php new file mode 100644 index 00000000..f17e1132 --- /dev/null +++ b/app/Template/board/table_tasks.php @@ -0,0 +1,28 @@ + + + + + + +
+ + render($not_editable ? 'board/task_public' : 'board/task_private', array( + 'project' => $project, + 'task' => $task, + 'board_highlight_period' => $board_highlight_period, + 'not_editable' => $not_editable, + )) ?> + +
+ + +
+
+
+ e($column['title']) ?> +
+
+
+ + + diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php index a2fe890b..4e34a393 100644 --- a/app/Template/board/task_private.php +++ b/app/Template/board/task_private.php @@ -11,7 +11,7 @@ render('board/task_menu', array('task' => $task)) ?> - board->isCollapsed($project['id'])): ?> + board->isCollapsed($task['project_id'])): ?>
diff --git a/app/Template/board/view_private.php b/app/Template/board/view_private.php new file mode 100644 index 00000000..d4c2c651 --- /dev/null +++ b/app/Template/board/view_private.php @@ -0,0 +1,18 @@ +
+ + render('project/filters', array( + 'project' => $project, + 'filters' => $filters, + 'categories_list' => $categories_list, + 'users_list' => $users_list, + 'is_board' => true, + )) ?> + + render('board/table_container', array( + 'project' => $project, + 'swimlanes' => $swimlanes, + 'board_private_refresh_interval' => $board_private_refresh_interval, + 'board_highlight_period' => $board_highlight_period, + )) ?> + +
diff --git a/app/Template/board/view_public.php b/app/Template/board/view_public.php new file mode 100644 index 00000000..aea72031 --- /dev/null +++ b/app/Template/board/view_public.php @@ -0,0 +1,11 @@ +
+ + render('board/table_container', array( + 'project' => $project, + 'swimlanes' => $swimlanes, + 'board_private_refresh_interval' => $board_private_refresh_interval, + 'board_highlight_period' => $board_highlight_period, + 'not_editable' => true, + )) ?> + +
\ No newline at end of file -- cgit v1.2.3