Rename state history links

This commit is contained in:
Thomas Gelf 2014-03-27 09:47:52 +00:00
parent 08945257dc
commit 8d29620350
3 changed files with 7 additions and 7 deletions
.vagrant-puppet/files/etc/icingaweb/modules/monitoring
config/modules/monitoring
modules/monitoring/application/controllers

View File

@ -74,8 +74,8 @@ priority = 70
[History]
icon = "img/icons/history.png"
[History.Host History]
title = "Host Overview"
[History.Critical Events]
title = "Critical Events"
url = "monitoring/list/statehistorysummary"
priority = 50

View File

@ -74,8 +74,8 @@ priority = 70
[History]
icon = "img/icons/history.png"
[History.Host History]
title = "Host Overview"
[History.Critical Events]
title = "Critical Events"
url = "monitoring/list/statehistorysummary"
priority = 50

View File

@ -297,7 +297,7 @@ class Monitoring_ListController extends Controller
public function statehistorysummaryAction()
{
$this->addTitleTab('statehistorysummary');
$this->addTitleTab('statehistorysummary', 'Critical Events');
$query = StateHistorySummary::fromRequest(
$this->_request, array('day', 'cnt_critical')
)->getQuery()->order('day');
@ -602,10 +602,10 @@ class Monitoring_ListController extends Controller
);
}
protected function addTitleTab($action)
protected function addTitleTab($action, $title = false)
{
$this->getTabs()->add($action, array(
'title' => ucfirst($action),
'title' => $title ?: ucfirst($action),
'url' => Url::fromPath('monitoring/list/' . $action)
))->activate($action);
}