From 31aad4d3f55448c1b44ecfb4881b493b1ddabc5d Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 14 Feb 2017 18:13:28 +0100 Subject: [PATCH] Show every downtime's type in the detail view of a monitored object refs #2693 --- .../views/scripts/show/components/downtime.phtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml index 7e7fcdd0f..fdc1b54aa 100644 --- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml +++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml @@ -80,7 +80,12 @@ if (empty($object->comments) && ! $addLink) { } ?>
- escape($downtime->author_name) ?> + escape(sprintf( + $downtime->is_flexible + ? $this->translate('Flexible downtime by %s') + : $this->translate('Fixed downtime by %s'), + $downtime->author_name + )) ?> translate('created') ?> timeAgo($downtime->entry_time) ?>