diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index f0cdb2767..6c4cc0101 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -222,6 +222,7 @@ class Monitoring_ListController extends Controller 'author' => 'downtime_author', 'start' => 'downtime_start', 'scheduled_start' => 'downtime_scheduled_start', + 'scheduled_end' => 'downtime_scheduled_end', 'end' => 'downtime_end', 'duration' => 'downtime_duration', 'is_flexible' => 'downtime_is_flexible', @@ -229,7 +230,9 @@ class Monitoring_ListController extends Controller 'is_in_effect' => 'downtime_is_in_effect', 'entry_time' => 'downtime_entry_time', 'host' => 'downtime_host', - 'service' => 'downtime_service' + 'service' => 'downtime_service', + 'host_state' => 'downtime_host_state', + 'service_state' => 'downtime_service_state' ))->order('downtime_is_in_effect', 'DESC') ->order('downtime_scheduled_start', 'DESC'); diff --git a/modules/monitoring/application/views/scripts/list/downtimes.phtml b/modules/monitoring/application/views/scripts/list/downtimes.phtml index 995a66001..babb76074 100644 --- a/modules/monitoring/application/views/scripts/list/downtimes.phtml +++ b/modules/monitoring/application/views/scripts/list/downtimes.phtml @@ -1,70 +1,121 @@ getHelper('CommandForm'); ?> -
- = $this->dateFormat()->formatDateTime($downtime->start); ?> -
- = $this->dateFormat()->formatDateTime($downtime->end); ?>
- - Duration: = $this->util()->showHourMin($downtime->duration); ?> - - The is_flexible): ?>flexiblefixed downtime is is_in_effect): ?>not in effect - |
-
- service)): ?>
- = $downtime->service ?>
- on = $downtime->host ?>
-
- = $downtime->host ?>
-
- - = $downtime->author ?>: = $downtime->comment ?> - - Entry Time: = ($downtime->entry_time) ? $this->dateFormat()->formatDateTime((int) $downtime->entry_time) : ''; ?> - - | - $downtime->id, - 'host' => $downtime->host - ); - if (isset($downtime->service)) { - $data['service'] = $downtime->service; - } - // echo $helper->iconSubmitForm( - // 'img/icons/remove.png', - echo $helper->labelSubmitForm( - 'X', - 'Remove Downtime', - 'link-like', - 'removedowntime', - $data - ); - ?> - | -
+ = $downtime->is_in_effect ? $this->translate('Expires') : $this->translate('Starts'); ?>
+ + = $this->prefixedTimeUntil($downtime->is_in_effect ? $downtime->end : $downtime->start); ?> + |
+
+ service)): ?>
+
+ = $downtime->service; ?>
+
+
+ = $this->translate('on'); ?> = $downtime->host; ?>
+
+
+
+ = $downtime->host; ?>
+
+
+ + = $this->icon('comment.png'); ?> [= $downtime->author; ?>] = $downtime->comment; ?> + + + is_flexible): ?> + is_in_effect): ?> + = sprintf( + $this->translate('This flexible downtime was started on %s at %s and lasts for %s until %s at %s.'), + date('d.m.y', $downtime->start), + date('H:i', $downtime->start), + $this->format()->duration($downtime->duration), + date('d.m.y', $downtime->end), + date('H:i', $downtime->end) + ); ?> + + = sprintf( + $this->translate('This flexible downtime has been scheduled to start between %s - %s and to last for %s.'), + date('d.m.y H:i', $downtime->scheduled_start), + date('d.m.y H:i', $downtime->scheduled_end), + $this->format()->duration($downtime->duration) + ); ?> + + + is_in_effect): ?> + = sprintf( + $this->translate('This fixed downtime was started on %s at %s and expires on %s at %s.'), + date('d.m.y', $downtime->start), + date('H:i', $downtime->start), + date('d.m.y', $downtime->end), + date('H:i', $downtime->end) + ); ?> + + = sprintf( + $this->translate('This fixed downtime has been scheduled to start on %s at %s and to end on %s at %s.'), + date('d.m.y', $downtime->scheduled_start), + date('H:i', $downtime->scheduled_start), + date('d.m.y', $downtime->scheduled_end), + date('H:i', $downtime->scheduled_end) + ); ?> + + + + |
+ $downtime->id,
+ 'host' => $downtime->host
+ );
+ if (isset($downtime->service)) {
+ $data['service'] = $downtime->service;
+ }
+ ?>
+ + = $helper->labelSubmitForm( + 'X', + 'Remove Downtime', + 'link-like', + 'removedowntime', + $data + ); ?> + | +