diff --git a/application/controllers/AboutController.php b/application/controllers/AboutController.php index 4a78c6204..f856d8435 100644 --- a/application/controllers/AboutController.php +++ b/application/controllers/AboutController.php @@ -13,6 +13,7 @@ class AboutController extends Controller { $this->view->version = Version::get(); $this->view->modules = Icinga::app()->getModuleManager()->getLoadedModules(); + $this->view->title = $this->translate('About'); $this->view->tabs = $this->getTabs()->add( 'about', array( diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index 25bc97756..154270bea 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -68,6 +68,7 @@ class AccountController extends Controller $form->handleRequest(); $this->view->form = $form; + $this->view->title = $this->translate('My Account'); $this->getTabs()->activate('account'); } } diff --git a/application/controllers/AnnouncementsController.php b/application/controllers/AnnouncementsController.php index c72d36af1..82d012fb6 100644 --- a/application/controllers/AnnouncementsController.php +++ b/application/controllers/AnnouncementsController.php @@ -12,6 +12,13 @@ use Icinga\Web\Url; class AnnouncementsController extends Controller { + public function init() + { + $this->view->title = $this->translate('Announcements'); + + parent::init(); + } + /** * List all announcements */ diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index d52b3aa60..54c8b91ad 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -82,6 +82,7 @@ class ConfigController extends Controller $form->handleRequest(); $this->view->form = $form; + $this->view->title = $this->translate('General'); $this->createApplicationTabs()->activate('general'); } @@ -107,6 +108,7 @@ class ConfigController extends Controller ->order('name'); $this->setupLimitControl(); $this->setupPaginationControl($this->view->modules); + $this->view->title = $this->translate('Modules'); } public function moduleAction() @@ -137,6 +139,7 @@ class ConfigController extends Controller $this->view->module = $module; $this->view->toggleForm = $toggleForm; + $this->view->title = $module->getName(); $this->view->tabs = $module->getConfigTabs()->activate('info'); $this->view->moduleGitCommitId = Version::getGitHead($module->getBaseDir()); } else { @@ -209,6 +212,7 @@ class ConfigController extends Controller $this->view->form = $form; $this->view->backendNames = Config::app('groups'); $this->createApplicationTabs()->activate('authentication'); + $this->view->title = $this->translate('Authentication'); $this->render('userbackend/reorder'); } @@ -255,6 +259,7 @@ class ConfigController extends Controller }); $form->handleRequest(); + $this->view->title = $this->translate('Authentication'); $this->renderForm($form, $this->translate('New User Backend')); } @@ -293,6 +298,7 @@ class ConfigController extends Controller $this->httpNotFound(sprintf($this->translate('User backend "%s" not found'), $backendName)); } + $this->view->title = $this->translate('Authentication'); $this->renderForm($form, $this->translate('Update User Backend')); } @@ -325,6 +331,7 @@ class ConfigController extends Controller }); $form->handleRequest(); + $this->view->title = $this->translate('Authentication'); $this->renderForm($form, $this->translate('Remove User Backend')); } @@ -338,6 +345,7 @@ class ConfigController extends Controller ->setKeyColumn('name') ->select() ->order('name'); + $this->view->title = $this->translate('Resources'); $this->createApplicationTabs()->activate('resource'); } @@ -358,6 +366,7 @@ class ConfigController extends Controller $form->handleRequest(); $this->view->form = $form; + $this->view->title = $this->translate('Resources'); $this->render('resource/create'); } @@ -377,6 +386,7 @@ class ConfigController extends Controller $form->handleRequest(); $this->view->form = $form; + $this->view->title = $this->translate('Resources'); $this->render('resource/modify'); } @@ -441,6 +451,7 @@ class ConfigController extends Controller } $this->view->form = $form; + $this->view->title = $this->translate('Resources'); $this->render('resource/remove'); } } diff --git a/application/controllers/GroupController.php b/application/controllers/GroupController.php index e0f1263d5..88b2b754c 100644 --- a/application/controllers/GroupController.php +++ b/application/controllers/GroupController.php @@ -21,6 +21,13 @@ use Icinga\Web\Widget; class GroupController extends AuthBackendController { + public function init() + { + $this->view->title = $this->translate('User Groups'); + + parent::init(); + } + /** * List all user groups of a single backend */ diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index 1bc625583..2fbc5a930 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -54,5 +54,6 @@ class ListController extends Controller $this->setupLimitControl(); $this->setupPaginationControl($this->view->logData); + $this->view->title = $this->translate('Application Log'); } } diff --git a/application/controllers/NavigationController.php b/application/controllers/NavigationController.php index aa1b7a95d..e7088ce4e 100644 --- a/application/controllers/NavigationController.php +++ b/application/controllers/NavigationController.php @@ -127,6 +127,7 @@ class NavigationController extends Controller $this->view->types = $this->listItemTypes(); $this->view->items = $query; + $this->view->title = $this->translate('Navigation'); $this->getTabs() ->add( 'account', @@ -187,6 +188,7 @@ class NavigationController extends Controller $this->view->types = $this->listItemTypes(); $this->view->items = $query; + $this->view->title = $this->translate('Shared Navigation'); $this->getTabs()->add( 'navigation/shared', array( @@ -242,6 +244,7 @@ class NavigationController extends Controller }); $form->handleRequest(); + $this->view->title = $this->translate('Navigation'); $this->renderForm($form, $this->translate('New Navigation Item')); } @@ -297,6 +300,7 @@ class NavigationController extends Controller $this->httpNotFound(sprintf($this->translate('Navigation item "%s" not found'), $itemName)); } + $this->view->title = $this->translate('Navigation'); $this->renderForm($form, $this->translate('Update Navigation Item')); } @@ -340,6 +344,7 @@ class NavigationController extends Controller }); $form->handleRequest(); + $this->view->title = $this->translate('Navigation'); $this->renderForm($form, $this->translate('Remove Navigation Item')); } @@ -428,5 +433,6 @@ class NavigationController extends Controller } $this->view->navigation = $navigation; + $this->view->title = $navigation->getLabel(); } } diff --git a/application/controllers/RoleController.php b/application/controllers/RoleController.php index b9361f63b..eb3a0f2cd 100644 --- a/application/controllers/RoleController.php +++ b/application/controllers/RoleController.php @@ -18,6 +18,13 @@ use Icinga\Web\Notification; */ class RoleController extends AuthBackendController { + public function init() + { + $this->view->title = $this->translate('Roles'); + + parent::init(); + } + /** * List roles * diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index 9ff75cb9f..7ef07534d 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -20,6 +20,13 @@ use Icinga\Web\Widget; class UserController extends AuthBackendController { + public function init() + { + $this->view->title = $this->translate('Users'); + + parent::init(); + } + /** * List all users of a single backend */ diff --git a/application/controllers/UsergroupbackendController.php b/application/controllers/UsergroupbackendController.php index a9e411c54..123997a05 100644 --- a/application/controllers/UsergroupbackendController.php +++ b/application/controllers/UsergroupbackendController.php @@ -58,6 +58,7 @@ class UsergroupbackendController extends Controller }); $form->handleRequest(); + $this->view->title = $this->translate('Authentication'); $this->renderForm($form, $this->translate('New User Group Backend')); } @@ -94,6 +95,7 @@ class UsergroupbackendController extends Controller $this->httpNotFound(sprintf($this->translate('User group backend "%s" not found'), $backendName)); } + $this->view->title = $this->translate('Authentication'); $this->renderForm($form, $this->translate('Update User Group Backend')); } @@ -125,6 +127,7 @@ class UsergroupbackendController extends Controller }); $form->handleRequest(); + $this->view->title = $this->translate('Authentication'); $this->renderForm($form, $this->translate('Remove User Group Backend')); } }