From c0571fb1d543c7fee1a15cb51ac444f08e70d778 Mon Sep 17 00:00:00 2001 From: Nathan Booth Date: Mon, 19 Dec 2011 21:54:40 +0000 Subject: [PATCH] Fixed current page highlight in nab, fixed output of pobox on homepage to display dynamic content Signed-off-by: Nathan Booth --- source/webui/pages/home.php | 1 + source/webui/pages/navigation.php | 1 - source/webui/pages/usercp.php | 1 + source/webui/templates/home.tpl | 4 +++- source/webui/templates/navigation.tpl | 14 ++++++++++++-- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/source/webui/pages/home.php b/source/webui/pages/home.php index 2e190c6..745c8fa 100644 --- a/source/webui/pages/home.php +++ b/source/webui/pages/home.php @@ -7,5 +7,6 @@ for ($i = 1; $i <= 6; ++$i){ } $this->smarty->assign('days', $tbl_header_date); $this->smarty->assign('services', $services); +$this->smarty->assign('requested_page', $this->page); ?> \ No newline at end of file diff --git a/source/webui/pages/navigation.php b/source/webui/pages/navigation.php index 7a7cbf6..a2c3dc4 100644 --- a/source/webui/pages/navigation.php +++ b/source/webui/pages/navigation.php @@ -12,5 +12,4 @@ if ($auth->isAuthenticated()) { $this->smarty->assign('authenticated', $authenticated); $this->smarty->assign('auth', $auth); $this->smarty->assign('user', $user); - ?> \ No newline at end of file diff --git a/source/webui/pages/usercp.php b/source/webui/pages/usercp.php index 25a4cf7..55826b4 100644 --- a/source/webui/pages/usercp.php +++ b/source/webui/pages/usercp.php @@ -43,5 +43,6 @@ if ($request->exists('do')) { $this->smarty->assign('activity', $activity); $this->smarty->assign('successes', $successes); $this->smarty->assign('errors', $errors); +$this->smarty->assign('requested_page', $this->page); ?> \ No newline at end of file diff --git a/source/webui/templates/home.tpl b/source/webui/templates/home.tpl index f2297d4..08dd7c1 100644 --- a/source/webui/templates/home.tpl +++ b/source/webui/templates/home.tpl @@ -23,10 +23,12 @@ {$site->name} - + + + TODO diff --git a/source/webui/templates/navigation.tpl b/source/webui/templates/navigation.tpl index d5eb43a..0b9d8a4 100644 --- a/source/webui/templates/navigation.tpl +++ b/source/webui/templates/navigation.tpl @@ -1,11 +1,21 @@ StatusBoard