From 97fb897d5e3c9b1cfb415de154c1b972814633af Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 11 Aug 2013 11:44:49 +0200 Subject: [PATCH] minor gui enhancement --- webui/config.php | 1 + webui/controller/login/login.php | 1 + webui/controller/login/logout.php | 5 +- .../theme/default/templates/health/worker.tpl | 15 +++--- .../theme/default/templates/login/login.tpl | 2 +- .../theme/default/templates/login/logout.tpl | 48 ++++++++++++++++++- .../theme/mobile/templates/health/worker.tpl | 14 +++--- .../theme/mobile/templates/login/login.tpl | 2 +- .../theme/mobile/templates/login/logout.tpl | 45 ++++++++++++++++- 9 files changed, 110 insertions(+), 23 deletions(-) diff --git a/webui/config.php b/webui/config.php index 67efc045..78befbdf 100644 --- a/webui/config.php +++ b/webui/config.php @@ -21,6 +21,7 @@ $config['BRANDING_BACKGROUND_COLOUR'] = ''; $config['BRANDING_TEXT_COLOUR'] = ''; $config['BRANDING_FAVICON'] = ''; $config['SUPPORT_LINK'] = ''; +$config['TITLE_PREFIX'] = ''; $config['BOOTSTRAP_THEME'] = '-cosmo'; diff --git a/webui/controller/login/login.php b/webui/controller/login/login.php index 40375207..7e153397 100644 --- a/webui/controller/login/login.php +++ b/webui/controller/login/login.php @@ -33,6 +33,7 @@ class ControllerLoginLogin extends Controller { } $this->data['title'] = $this->data['text_login']; + $this->data['title_prefix'] = TITLE_PREFIX; if($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate() == true) { diff --git a/webui/controller/login/logout.php b/webui/controller/login/logout.php index c7274d09..6b4f05cd 100644 --- a/webui/controller/login/logout.php +++ b/webui/controller/login/logout.php @@ -8,7 +8,7 @@ class ControllerLoginLogout extends Controller { $this->id = "content"; $this->template = "login/logout.tpl"; - $this->layout = "common/layout"; + $this->layout = "common/layout-empty"; $request = Registry::get('request'); @@ -16,7 +16,8 @@ class ControllerLoginLogout extends Controller { $this->load->model('user/auth'); - $this->document->title = $this->data['text_logout']; + $this->data['title'] = $this->data['text_logout']; + $this->data['title_prefix'] = TITLE_PREFIX; if(ENABLE_SAAS == 1) { $this->load->model('saas/customer'); diff --git a/webui/view/theme/default/templates/health/worker.tpl b/webui/view/theme/default/templates/health/worker.tpl index 1d768a1b..ad5fab7f 100644 --- a/webui/view/theme/default/templates/health/worker.tpl +++ b/webui/view/theme/default/templates/health/worker.tpl @@ -65,7 +65,12 @@ - . . + + . + : , : + . + + @@ -76,14 +81,6 @@ - - - - : , : - - - - diff --git a/webui/view/theme/default/templates/login/login.tpl b/webui/view/theme/default/templates/login/login.tpl index a68da3cb..1c769461 100644 --- a/webui/view/theme/default/templates/login/login.tpl +++ b/webui/view/theme/default/templates/login/login.tpl @@ -2,7 +2,7 @@ - <?php print $title; ?> + <?php if($title_prefix) { print $title_prefix; ?> | <?php } ?><?php print $title; ?> diff --git a/webui/view/theme/default/templates/login/logout.tpl b/webui/view/theme/default/templates/login/logout.tpl index 17778b21..c096ab55 100644 --- a/webui/view/theme/default/templates/login/logout.tpl +++ b/webui/view/theme/default/templates/login/logout.tpl @@ -1 +1,47 @@ -

.

+ + + + + <?php if($title_prefix) { print $title_prefix; ?> | <?php } ?><?php print $title; ?> + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +

+

.

+ +
+ + + + +
+ + + diff --git a/webui/view/theme/mobile/templates/health/worker.tpl b/webui/view/theme/mobile/templates/health/worker.tpl index f7ca191d..6f5e7880 100644 --- a/webui/view/theme/mobile/templates/health/worker.tpl +++ b/webui/view/theme/mobile/templates/health/worker.tpl @@ -77,7 +77,12 @@
-
. .
+
+ . + : , : + . + +
@@ -133,13 +138,6 @@
- -
-
-
: , :
-
- - diff --git a/webui/view/theme/mobile/templates/login/login.tpl b/webui/view/theme/mobile/templates/login/login.tpl index 7162a55f..31071d40 100644 --- a/webui/view/theme/mobile/templates/login/login.tpl +++ b/webui/view/theme/mobile/templates/login/login.tpl @@ -2,7 +2,7 @@ - <?php print $title; ?> + <?php if($title_prefix) { print $title_prefix; ?> | <?php } ?><?php print $title; ?> diff --git a/webui/view/theme/mobile/templates/login/logout.tpl b/webui/view/theme/mobile/templates/login/logout.tpl index 17778b21..03f30569 100644 --- a/webui/view/theme/mobile/templates/login/logout.tpl +++ b/webui/view/theme/mobile/templates/login/logout.tpl @@ -1 +1,44 @@ -

.

+ + + + + <?php if($title_prefix) { print $title_prefix; ?> | <?php } ?><?php print $title; ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +

.

+ +
+ +
+ + +