From d7b0cfbbe57fae9afbf9637afa7e54d3bf708747 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 8 Apr 2017 13:58:25 -0400 Subject: Improve dashboard --- app/Template/dashboard/layout.php | 29 ++++++++++++ app/Template/dashboard/overview.php | 93 +++++++++++++++++++++++++++++++++++++ app/Template/dashboard/projects.php | 27 +++++++++++ app/Template/dashboard/show.php | 82 -------------------------------- app/Template/dashboard/sidebar.php | 17 +++++++ app/Template/dashboard/subtasks.php | 48 +++++++++++++++++++ app/Template/dashboard/tasks.php | 38 +++++++++++++++ 7 files changed, 252 insertions(+), 82 deletions(-) create mode 100644 app/Template/dashboard/layout.php create mode 100644 app/Template/dashboard/overview.php create mode 100644 app/Template/dashboard/projects.php delete mode 100644 app/Template/dashboard/show.php create mode 100644 app/Template/dashboard/sidebar.php create mode 100644 app/Template/dashboard/subtasks.php create mode 100644 app/Template/dashboard/tasks.php (limited to 'app/Template/dashboard') diff --git a/app/Template/dashboard/layout.php b/app/Template/dashboard/layout.php new file mode 100644 index 00000000..45b52451 --- /dev/null +++ b/app/Template/dashboard/layout.php @@ -0,0 +1,29 @@ +
+ + +
diff --git a/app/Template/dashboard/overview.php b/app/Template/dashboard/overview.php new file mode 100644 index 00000000..e732a387 --- /dev/null +++ b/app/Template/dashboard/overview.php @@ -0,0 +1,93 @@ +
+ +
+ +isEmpty()): ?> +
+ render('project_list/header', array('paginator' => $project_paginator)) ?> + getCollection() as $project): ?> +
+
+ user->hasProjectAccess('ProjectViewController', 'show', $project['id'])): ?> + render('project/dropdown', array('project' => $project)) ?> + + + + + + url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?> + + + + + +
+
+ + + text->e($column['title']) ?> + +
+
+ +
+ + + + + +

+ + + isEmpty()): ?> + + +
+ render('task_list/header', array( + 'paginator' => $result['paginator'], + )) ?> + + getCollection() as $task): ?> +
+ render('task_list/task_title', array( + 'task' => $task, + )) ?> + + render('task_list/task_details', array( + 'task' => $task, + )) ?> + + render('task_list/task_avatars', array( + 'task' => $task, + )) ?> + + render('task_list/task_icons', array( + 'task' => $task, + )) ?> + + render('task_list/task_subtasks', array( + 'task' => $task, + 'user_id' => $user['id'], + )) ?> +
+ +
+ + + + + + +hook->render('template:dashboard:show', array('user' => $user)) ?> diff --git a/app/Template/dashboard/projects.php b/app/Template/dashboard/projects.php new file mode 100644 index 00000000..e84a9415 --- /dev/null +++ b/app/Template/dashboard/projects.php @@ -0,0 +1,27 @@ + +isEmpty()): ?> +

+ +
+ render('project_list/header', array('paginator' => $paginator)) ?> + getCollection() as $project): ?> +
+ render('project_list/project_title', array( + 'project' => $project, + )) ?> + + render('project_list/project_details', array( + 'project' => $project, + )) ?> + + render('project_list/project_icons', array( + 'project' => $project, + )) ?> +
+ +
+ + + diff --git a/app/Template/dashboard/show.php b/app/Template/dashboard/show.php deleted file mode 100644 index 64b90516..00000000 --- a/app/Template/dashboard/show.php +++ /dev/null @@ -1,82 +0,0 @@ - - -
- -
- - -

- - - isEmpty()): ?> - - -
- render('task_list/header', array( - 'paginator' => $result['paginator'], - )) ?> - - getCollection() as $task): ?> -
- render('task_list/task_title', array( - 'task' => $task, - )) ?> - - render('task_list/task_details', array( - 'task' => $task, - )) ?> - - render('task_list/task_avatars', array( - 'task' => $task, - )) ?> - - render('task_list/task_icons', array( - 'task' => $task, - )) ?> - - render('task_list/task_subtasks', array( - 'task' => $task, - 'user_id' => $user['id'], - )) ?> -
- -
- - - - - - -hook->render('template:dashboard:show', array('user' => $user)) ?> diff --git a/app/Template/dashboard/sidebar.php b/app/Template/dashboard/sidebar.php new file mode 100644 index 00000000..7507b00d --- /dev/null +++ b/app/Template/dashboard/sidebar.php @@ -0,0 +1,17 @@ + diff --git a/app/Template/dashboard/subtasks.php b/app/Template/dashboard/subtasks.php new file mode 100644 index 00000000..ccc08c59 --- /dev/null +++ b/app/Template/dashboard/subtasks.php @@ -0,0 +1,48 @@ + + +

+ +
+
+
+ 1): ?> + + + + +
+
+ +
+
+ + getCollection() as $task): ?> +
+ render('task_list/task_title', array( + 'task' => $task, + )) ?> + + render('task_list/task_subtasks', array( + 'task' => $task, + )) ?> +
+ +
+ + + diff --git a/app/Template/dashboard/tasks.php b/app/Template/dashboard/tasks.php new file mode 100644 index 00000000..23aef990 --- /dev/null +++ b/app/Template/dashboard/tasks.php @@ -0,0 +1,38 @@ + +isEmpty()): ?> +

+ +
+ render('task_list/header', array( + 'paginator' => $paginator, + )) ?> + + getCollection() as $task): ?> +
+ render('task_list/task_title', array( + 'task' => $task, + )) ?> + + render('task_list/task_details', array( + 'task' => $task, + )) ?> + + render('task_list/task_avatars', array( + 'task' => $task, + )) ?> + + render('task_list/task_icons', array( + 'task' => $task, + )) ?> + + render('task_list/task_subtasks', array( + 'task' => $task, + )) ?> +
+ +
+ + + -- cgit v1.2.3