Rename state history links
This commit is contained in:
parent
08945257dc
commit
8d29620350
.vagrant-puppet/files/etc/icingaweb/modules/monitoring
config/modules/monitoring
modules/monitoring/application/controllers
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue