diff --git a/application/views/scripts/mixedPagination.phtml b/application/views/scripts/mixedPagination.phtml index 10fabacfc..2542ec367 100755 --- a/application/views/scripts/mixedPagination.phtml +++ b/application/views/scripts/mixedPagination.phtml @@ -21,7 +21,7 @@ $title_next = sprintf( ); ?> -
' - . htmlspecialchars(wordwrap($query->dump())) - . ''; - exit; - } - if ($this->_getParam('format') === 'json' - || $this->_request->getHeader('Accept') === 'application/json') - { - header('Content-type: application/json'); - echo json_encode($query->fetchAll()); - exit; - } - if ($this->_getParam('format') === 'csv' - || $this->_request->getHeader('Accept') === 'text/csv') { - Csv::fromQuery($query)->dump(); - exit; - } - } - /** * Create a sort control box at the 'sortControl' view parameter * @@ -446,7 +413,7 @@ class Monitoring_ListController extends MonitoringController private function createTabs() { $tabs = $this->getTabs(); - $tabs->extend(new OutputFormat()) + $tabs//->extend(new OutputFormat()) ->extend(new DashboardAction()); } } diff --git a/modules/monitoring/application/views/scripts/list/comments.phtml b/modules/monitoring/application/views/scripts/list/comments.phtml index 964c4b1a6..764f28863 100644 --- a/modules/monitoring/application/views/scripts/list/comments.phtml +++ b/modules/monitoring/application/views/scripts/list/comments.phtml @@ -3,14 +3,19 @@ /** @var Zend_View_Helper_CommandForm $commandHelper */ $commandHelper = $this->getHelper('CommandForm'); -?> -= $this->tabs->render($this); ?> - -getHelper('MonitoringState'); + $viewHelper = $this->getHelper('MonitoringState'); ?> -
+ | + ++ + + + + + service_acknowledged && !$service->service_in_downtime): ?> + + + + + + service_is_flapping): ?> + + + + + + service_notifications_enabled): ?> + + + + + + service_in_downtime): ?> + + + + + + service_active_checks_enabled): ?> + service_passive_checks_enabled): ?> + + + + + + + + + + + service_last_comment !== null): ?> + + + + + | + + + service_handled && $service->service_state > 0): ?> +
+ = ucfirst($viewHelper->monitoringState($service, 'service')); ?> + +
+ Since = $this->timeSince($service->service_last_state_change); ?>
+ service_state): ?>
+
-
++ Attempt: + = $service->service_attempt; ?> + (= ($service->service_state_type === '1') ? 'Hard' : 'Soft'; ?>) + + |
-= $this->paginationControl($services, null, null, array('preserve' => $this->preserve)) ?>
-
-
Status | -Service | -Output | -- | |
---|---|---|---|---|
-
- service_icon_image) : ?>
-
- |
-
-
- service_handled && $service->service_state > 0): ?>
-
- {{UNHANDLED_ICON}}
-
-
-
- service_acknowledged && !$service->service_in_downtime): ?>
-
- {{ACKNOWLEDGED_ICON}}
-
-
-
- service_is_flapping): ?>
-
- {{FLAPPING_ICON}}
-
-
-
- service_notifications_enabled): ?>
-
- {{NOTIFICATIONS_DISABLED_ICON}}
-
-
-
- service_in_downtime): ?>
-
- {{IN_DOWNTIME_ICON}}
-
-
-
-
- |
-
-
- = ucfirst($viewHelper->monitoringState($service, 'service')); ?>
-
- Since '
- = $this->timeSince($service->service_last_state_change); ?>
- service_state_type == 0): ?>
-
- {{SOFTSTATE_ICON}}
-
-
-
- |
-
- service_last_comment !== null): ?>
-
- {{COMMENT_ICON}}
-
-
- = $service->service_display_name; ?>
- - = $service->host_name; ?> - - service_action_url != ""): ?> - Action - - - service_notes_url != ""): ?> - Notes - - |
- - = $this->escape(substr(strip_tags($service->service_output), 0, 10000)); ?> - | -
+
+ = $this->escape(substr(strip_tags($service->service_output), 0, 10000)); ?>
+
+ |
+
+
+