diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml
index b338f8a71..bfb9bbf45 100644
--- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml
@@ -47,12 +47,15 @@ foreach ($object->downtimes as $downtime) {
) : $this->escape($downtime->comment);
if ((bool) $downtime->is_in_effect) {
- $state = 'in downtime since ' . $this->timeSince($downtime->start);
+ $state = 'in downtime since ';
+ $time = $this->timeSince($downtime->start);
} else {
if ((bool) $downtime->is_fixed) {
- $state = 'scheduled ' . $this->timeUntil($downtime->start);
+ $state = 'scheduled ';
+ $time = $this->timeUntil($downtime->start);
} else {
- $state = 'scheduled flexible ' . $this->timeUntil($downtime->start);
+ $state = 'scheduled flexible ';
+ $time = $this->timeUntil($downtime->start);
}
}
@@ -65,7 +68,14 @@ foreach ($object->downtimes as $downtime) {
$delDowntimeForm->populate(array('downtime_id' => $downtime->id));
echo $delDowntimeForm;
} ?>
- = $this->translate('Downtime'); ?>= $state; ?> - = str_replace(array('\r\n', '\n'), '
', $commentText); ?>
+ = $this->translate('Downtime'); ?>
+ =
+ $this->qlink(
+ $state,
+ 'monitoring/downtime/show',
+ array('downtime_id' => $downtime->id),
+ array('data-base-target' => '_next')
+ ) . $time ; ?> - = str_replace(array('\r\n', '\n'), '
', $commentText); ?>