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/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 +++ 5 files changed, 106 insertions(+) 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/header') 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