mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
Controllers: unify titles
This commit is contained in:
parent
7af25b2b98
commit
7cd77c75ba
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user