From 69c6271c6e43451a3da945d60a5435e224e7c782 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 7 Aug 2016 12:51:03 -0400 Subject: Convert application header to grid system --- app/Template/header.php | 148 +++++++---------------------- app/Template/header/board_selector.php | 13 +++ app/Template/header/creation_dropdown.php | 22 +++++ app/Template/header/title.php | 17 ++++ app/Template/header/user_dropdown.php | 49 ++++++++++ app/Template/header/user_notifications.php | 5 + 6 files changed, 138 insertions(+), 116 deletions(-) create mode 100644 app/Template/header/board_selector.php create mode 100644 app/Template/header/creation_dropdown.php create mode 100644 app/Template/header/title.php create mode 100644 app/Template/header/user_dropdown.php create mode 100644 app/Template/header/user_notifications.php (limited to 'app/Template') diff --git a/app/Template/header.php b/app/Template/header.php index 033967db..5d115b4a 100644 --- a/app/Template/header.php +++ b/app/Template/header.php @@ -1,119 +1,35 @@ -
- +
+
+ +
+ +
+
+ render('header/board_selector', array('board_selector' => $board_selector)) ?> +
+
+ +
+ +
+ +
+
+ +
+ +
diff --git a/app/Template/header/board_selector.php b/app/Template/header/board_selector.php new file mode 100644 index 00000000..b42d47f9 --- /dev/null +++ b/app/Template/header/board_selector.php @@ -0,0 +1,13 @@ + diff --git a/app/Template/header/creation_dropdown.php b/app/Template/header/creation_dropdown.php new file mode 100644 index 00000000..d3b9e7cb --- /dev/null +++ b/app/Template/header/creation_dropdown.php @@ -0,0 +1,22 @@ +user->hasAccess('ProjectCreationController', 'create'); ?> +app->config('disable_private_project', 0) == 0; ?> + + + + diff --git a/app/Template/header/title.php b/app/Template/header/title.php new file mode 100644 index 00000000..61c6ee9a --- /dev/null +++ b/app/Template/header/title.php @@ -0,0 +1,17 @@ +

+ + + + url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?> + + text->e($title) ?> + + + + + + + +

diff --git a/app/Template/header/user_dropdown.php b/app/Template/header/user_dropdown.php new file mode 100644 index 00000000..49d08213 --- /dev/null +++ b/app/Template/header/user_dropdown.php @@ -0,0 +1,49 @@ + diff --git a/app/Template/header/user_notifications.php b/app/Template/header/user_notifications.php new file mode 100644 index 00000000..83c545d2 --- /dev/null +++ b/app/Template/header/user_notifications.php @@ -0,0 +1,5 @@ +user->hasNotifications()): ?> + + url->link('', 'DashboardController', 'notifications', array('user_id' => $this->user->getId()), false, '', t('Unread notifications')) ?> + + -- cgit v1.2.3