summaryrefslogtreecommitdiff
path: root/manager
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2010-07-01 19:58:45 +0200
committerMichael Tänzer <neo@nhng.de>2010-07-01 19:58:45 +0200
commit72e3df07485cc4ea7990c7fa408592fd4fedf45b (patch)
tree4091972161d7e8729b3e0f2d47eed0a84fc82198 /manager
parent5e39c30e125d8ffc609619050ac52e652f84e5f7 (diff)
downloadcacert-mgr-72e3df07485cc4ea7990c7fa408592fd4fedf45b.tar.gz
cacert-mgr-72e3df07485cc4ea7990c7fa408592fd4fedf45b.tar.xz
cacert-mgr-72e3df07485cc4ea7990c7fa408592fd4fedf45b.zip
Add left navigation for the ManageAccountController
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'manager')
-rw-r--r--manager/application/controllers/ManageAccountController.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/manager/application/controllers/ManageAccountController.php b/manager/application/controllers/ManageAccountController.php
index c893a4b..e785fd1 100644
--- a/manager/application/controllers/ManageAccountController.php
+++ b/manager/application/controllers/ManageAccountController.php
@@ -21,7 +21,21 @@ class ManageAccountController extends Zend_Controller_Action
APPLICATION_ENV);
$this->db = Zend_Db::factory($config->ca_mgr->db->auth->pdo,
- $config->ca_mgr->db->auth);
+ $config->ca_mgr->db->auth);
+
+ // Build the left navigation
+ $actions = array();
+ $actions['assurance'] = I18n::_('Automated Assurance');
+ $actions['admin-increase'] = I18n::_('Administrative Increase');
+ $actions['assurer-challenge'] = I18n::_('Assurer Challenge');
+ $url = array('controller' => 'manage-account');
+ foreach ($actions as $action => $label) {
+ $url['action'] = $action;
+ $link = '<a href="'.$this->view->url($url, 'default', true).'">'.
+ $label . '</a>';
+ $this->view->leftNav($link);
+ }
+
}
public function indexAction()