mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
Rename state history links
This commit is contained in:
parent
08945257dc
commit
8d29620350
@ -74,8 +74,8 @@ priority = 70
|
|||||||
[History]
|
[History]
|
||||||
icon = "img/icons/history.png"
|
icon = "img/icons/history.png"
|
||||||
|
|
||||||
[History.Host History]
|
[History.Critical Events]
|
||||||
title = "Host Overview"
|
title = "Critical Events"
|
||||||
url = "monitoring/list/statehistorysummary"
|
url = "monitoring/list/statehistorysummary"
|
||||||
priority = 50
|
priority = 50
|
||||||
|
|
||||||
|
@ -74,8 +74,8 @@ priority = 70
|
|||||||
[History]
|
[History]
|
||||||
icon = "img/icons/history.png"
|
icon = "img/icons/history.png"
|
||||||
|
|
||||||
[History.Host History]
|
[History.Critical Events]
|
||||||
title = "Host Overview"
|
title = "Critical Events"
|
||||||
url = "monitoring/list/statehistorysummary"
|
url = "monitoring/list/statehistorysummary"
|
||||||
priority = 50
|
priority = 50
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ class Monitoring_ListController extends Controller
|
|||||||
|
|
||||||
public function statehistorysummaryAction()
|
public function statehistorysummaryAction()
|
||||||
{
|
{
|
||||||
$this->addTitleTab('statehistorysummary');
|
$this->addTitleTab('statehistorysummary', 'Critical Events');
|
||||||
$query = StateHistorySummary::fromRequest(
|
$query = StateHistorySummary::fromRequest(
|
||||||
$this->_request, array('day', 'cnt_critical')
|
$this->_request, array('day', 'cnt_critical')
|
||||||
)->getQuery()->order('day');
|
)->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(
|
$this->getTabs()->add($action, array(
|
||||||
'title' => ucfirst($action),
|
'title' => $title ?: ucfirst($action),
|
||||||
'url' => Url::fromPath('monitoring/list/' . $action)
|
'url' => Url::fromPath('monitoring/list/' . $action)
|
||||||
))->activate($action);
|
))->activate($action);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user