From 49239dc7db82feb6414d91c09f0e60a94ed429d5 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 28 Mar 2017 10:12:07 +0200 Subject: [PATCH] Display downtime type as text in the downtimes list --- .../views/scripts/partials/downtime/downtime-header.phtml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml b/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml index d9b5a9259..8519a7419 100644 --- a/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml @@ -39,8 +39,12 @@ ); ?> - translate('by') ?> - escape($downtime->author_name) ?> + escape(sprintf( + $downtime->is_flexible + ? $this->translate('Flexible downtime by %s') + : $this->translate('Fixed downtime by %s'), + $downtime->author_name + )) ?> is_in_effect && $downtime->start >= time()): ?> translate('expires %s'), $this->timeUntil($downtime->end)) ?>