diff --git a/modules/monitoring/application/views/scripts/list/notifications.phtml b/modules/monitoring/application/views/scripts/list/notifications.phtml index 13736b9f3..939d46eba 100644 --- a/modules/monitoring/application/views/scripts/list/notifications.phtml +++ b/modules/monitoring/application/views/scripts/list/notifications.phtml @@ -5,85 +5,75 @@ use Icinga\Module\Monitoring\Object\Service; ?> -compact): ?> +compact): ?>
- tabs ?> -
- translate('Sort by') ?> sortControl->render($this) ?> -
- widget('limiter') ?> - paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?> -
+ tabs ?> +
+ translate('Sort by') ?> sortControl->render($this) ?> +
+ widget('limiter') ?> + paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?> + -inline): ?>
- + + translate('No notifications matching the filter') ?> + -notifications)) { - echo 'No notifications yet
'; - return; -} -?> - - - -service)) { - $isService = true; - $href = $this->href('monitoring/show/service', array( - 'host' => $notification->host, - 'service' => $notification->service - )); - $stateName = Service::getStateText($notification->notification_state); - } else { - $isService = false; - $href = $this->href('monitoring/show/host', array( - 'host' => $notification->host - )); - $stateName = Host::getStateText($notification->notification_state); - } -?> - - + + + + + +
- dateTimeRenderer($notification->notification_start_time)->render( - $this->translate('on %s', 'datetime'), - $this->translate('at %s', 'time'), - $this->translate('%s ago', 'timespan') - ); + + + service)) { + $isService = true; + $href = $this->href('monitoring/show/service', array( + 'host' => $notification->host, + 'service' => $notification->service + )); + $stateName = Service::getStateText($notification->notification_state); + } else { + $isService = false; + $href = $this->href('monitoring/show/host', array( + 'host' => $notification->host + )); + $stateName = Host::getStateText($notification->notification_state); + } ?> - - - - - -
- - translate('%s on %s'), "$notification->service", $notification->host); ?> - - host ?> - -
- escape(substr(strip_tags($notification->notification_output), 0, 10000)); ?> -
- contact): ?> - - translate('Sent to %s'), "href( - 'monitoring/show/contact', - array('contact' => $notification->notification_contact) - )\">$this->escape($notification->notification_contact)"); ?> - - -
- -inline): ?> +
+ dateTimeRenderer($notification->notification_start_time)->render( + $this->translate('on %s', 'datetime'), + $this->translate('at %s', 'time'), + $this->translate('%s ago', 'timespan') + ) ?> + + + translate('%s on %s'), + $this->qlink($notification->service, $href), $notification->host + ) ?> + + qlink($notification->host, $href) ?> + +
+ escape(substr(strip_tags($notification->notification_output), 0, 10000)); ?> +
+ contact): ?> + + translate('Sent to %s'), + $this->qlink( + $notification->notification_contact, + 'monitoring/show/contact', + array('contact' => $notification->notification_contact) + ) + ) ?> + + +
-