diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 21361c340..ec46b8172 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -73,9 +73,9 @@ class Monitoring_ListController extends Controller $stateColumn = 'host_hard_state'; $stateChangeColumn = 'host_last_hard_state_change'; } else { - $stateType = 'soft'; $stateColumn = 'host_state'; $stateChangeColumn = 'host_last_state_change'; + $stateType = 'soft'; } $this->addTitleTab('hosts'); @@ -148,7 +148,7 @@ class Monitoring_ListController extends Controller } } $this->setAutorefreshInterval(10); - + $columns = array_merge(array( 'host_name', 'host_state', diff --git a/modules/monitoring/application/views/scripts/list/contactgroups.phtml b/modules/monitoring/application/views/scripts/list/contactgroups.phtml index 98661f4e6..b29a5ab15 100644 --- a/modules/monitoring/application/views/scripts/list/contactgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/contactgroups.phtml @@ -10,8 +10,9 @@ if (count($groupData) === 0) { echo t('No contacts matching the filter'); } +?> -foreach ($groupData as $groupName => $groupInfo): ?> + $groupInfo): ?>

@@ -30,8 +31,8 @@ foreach ($groupData as $groupName => $groupInfo): ?>

contact_email): ?> contact_email; ?> -contact_pager): ?> + +contact_pager): ?>
contact_pager; ?> diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index 642fd7b57..fff475cc4 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -10,7 +10,7 @@ $contactHelper = $this->getHelper('ContactFlags'); paginationControl($contacts, null, null, array('preserve' => $this->preserve)); ?>

-
+
getHelper('ContactFlags');
- contact_name ?> (contact_alias ?>) + contact_name ?> (contact_alias ?>) %1$s' => $contact->contact_email, - 'Pager: %s' => $contact->contact_pager, - 'Service notification period: %s' => $contact->contact_notify_service_timeperiod, - 'Host notification period: %s' => $contact->contact_notify_host_timeperiod - ) as $format => $value): + $contact->contact_email => 'eMail: %1$s', + $contact->contact_pager => 'Pager: %s', + $contact->contact_notify_service_timeperiod => 'Service notification period: %s', + $contact->contact_notify_host_timeperiod => 'Host notification period: %s' + ) as $value => $format): if ($value): ?>
getHelper('CommandForm');
tabs ?>
-sortControl->render($this); ?> +sortControl->render($this); ?>
-paginationControl($downtimes, null, null, array('preserve' => $this->preserve)); ?> +paginationControl($downtimes, null, null, array('preserve' => $this->preserve)); ?>
@@ -16,7 +16,8 @@ $helper = $this->getHelper('CommandForm'); if (count($downtimes) === 0) { echo t('No downtimes matching the filter'); } -foreach ($this->downtimes as $downtime): ?> +?> +downtimes as $downtime): ?> dateFormat()->formatDateTime($downtime->start); ?> -