diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml index 7d4d18835..d124e09ff 100644 --- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml +++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml @@ -61,18 +61,10 @@ if (empty($object->comments) && ! $addLink) { $this->timeUntil($downtime->is_flexible ? $downtime->scheduled_end : $downtime->end, false, true) ); } else { - if ((bool) $downtime->is_fixed) { - $state = sprintf( - $this->translate('scheduled %s', 'Last format parameter represents the time scheduled'), - $this->timeUntil($downtime->start, false, true) - ); - } else { - $state = sprintf( - $this->translate('scheduled flexible %s', 'Last format parameter represents the time scheduled'), - $this->timeUntil($downtime->start, false, true) - ); - } - $state .= ' ' . sprintf( + $state = sprintf( + $this->translate('scheduled %s', 'Last format parameter represents the time scheduled'), + $this->timeUntil($downtime->start, false, true) + ) . ' ' . sprintf( $this->translate('expires %s', 'Last format parameter represents the downtime expire time'), $this->timeUntil($downtime->is_flexible ? $downtime->scheduled_end : $downtime->end, false, true) );