mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Don't show flexible twice for not yet started flexible downtimes
This commit is contained in:
parent
0fb034b663
commit
037bcc4b3e
@ -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)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user