Controllers: unify titles

This commit is contained in:
Thomas Gelf 2016-03-20 13:14:49 +01:00
parent 7af25b2b98
commit 7cd77c75ba
3 changed files with 6 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class HostController extends ObjectController
$this->getTabs()->activate('services');
$this->view->title = sprintf(
$this->translate('Services on %s'),
$this->translate('Services: %s'),
$host->object_name
);
$this->view->table = $this->loadTable('IcingaHostService')

View File

@ -259,7 +259,10 @@ abstract class ObjectController extends ActionController
$db = $this->db();
$type = $this->getType();
$this->getTabs()->activate('history');
$this->view->title = $this->translate('Activity Log');
$this->view->title = sprintf(
$this->translate('Activity Log: %s'),
$this->object->object_name
);
$lastDeployedId = $db->getLastDeploymentActivityLogId();
$this->view->table = $this->applyPaginationLimits(
$this->loadTable('activityLog')

View File

@ -97,7 +97,7 @@ abstract class ObjectsController extends ActionController
array('class' => 'icon-plus')
);
$this->view->title = $this->translate('Icinga ' . ucfirst($ltype));
$this->view->title = $this->translate('Icinga ' . ucfirst($ltype) . 's');
$table = $this->loadTable($table)->setConnection($this->db());
$this->view->filterEditor = $table->getFilterEditor($this->getRequest());