Using title tabs for some more actions
This commit is contained in:
parent
154b4722f5
commit
ad6498900b
|
@ -225,10 +225,7 @@ class Monitoring_ListController extends MonitoringController
|
||||||
*/
|
*/
|
||||||
public function notificationsAction()
|
public function notificationsAction()
|
||||||
{
|
{
|
||||||
$this->getTabs()->add('notifications', array(
|
$this->addTitleTab('notifications');
|
||||||
'title' => 'Notifications',
|
|
||||||
'url' => Url::fromPath('monitoring/list/notifications')
|
|
||||||
))->activate('notifications');
|
|
||||||
|
|
||||||
$query = NotificationView::fromRequest($this->_request)->getQuery();
|
$query = NotificationView::fromRequest($this->_request)->getQuery();
|
||||||
$this->view->notifications = $query->paginate();
|
$this->view->notifications = $query->paginate();
|
||||||
|
@ -240,6 +237,7 @@ class Monitoring_ListController extends MonitoringController
|
||||||
|
|
||||||
public function contactsAction()
|
public function contactsAction()
|
||||||
{
|
{
|
||||||
|
$this->addTitleTab('contactgroups');
|
||||||
$query = ContactView::fromRequest(
|
$query = ContactView::fromRequest(
|
||||||
$this->_request,
|
$this->_request,
|
||||||
array(
|
array(
|
||||||
|
@ -295,6 +293,10 @@ class Monitoring_ListController extends MonitoringController
|
||||||
|
|
||||||
public function commentsAction()
|
public function commentsAction()
|
||||||
{
|
{
|
||||||
|
$this->getTabs()->add('comments', array(
|
||||||
|
'title' => 'Comments',
|
||||||
|
'url' => Url::fromPath('monitoring/list/comments')
|
||||||
|
))->activate('comments');
|
||||||
$query = CommentView::fromRequest(
|
$query = CommentView::fromRequest(
|
||||||
$this->_request,
|
$this->_request,
|
||||||
array(
|
array(
|
||||||
|
@ -356,10 +358,7 @@ class Monitoring_ListController extends MonitoringController
|
||||||
|
|
||||||
public function hostgroupsAction()
|
public function hostgroupsAction()
|
||||||
{
|
{
|
||||||
$this->getTabs()->add('hostgroups', array(
|
$this->addTitleTab('hostgroups');
|
||||||
'title' => 'Hostgroup Summary',
|
|
||||||
'url' => Url::fromPath('monitoring/list/hostgroups')
|
|
||||||
))->activate('hostgroups');
|
|
||||||
|
|
||||||
$query = GroupsummaryView::fromRequest(
|
$query = GroupsummaryView::fromRequest(
|
||||||
$this->_request,
|
$this->_request,
|
||||||
|
|
Loading…
Reference in New Issue