From 400f351ea580800d22f56c23c0512839686f1b25 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Thu, 23 Apr 2015 16:55:59 +0200 Subject: [PATCH] Improve detail view layout refs #8902 --- .../views/scripts/downtime/show.phtml | 57 +++++++++---------- .../views/scripts/downtimes/show.phtml | 12 +--- 2 files changed, 30 insertions(+), 39 deletions(-) diff --git a/modules/monitoring/application/views/scripts/downtime/show.phtml b/modules/monitoring/application/views/scripts/downtime/show.phtml index ddc91eeeb..ade9495b0 100644 --- a/modules/monitoring/application/views/scripts/downtime/show.phtml +++ b/modules/monitoring/application/views/scripts/downtime/show.phtml @@ -76,45 +76,44 @@ - -

- isService): ?> - link()->service( - $downtime->service_description, - $downtime->service_display_name, - $downtime->host_name, - $downtime->host_display_name - ); - $icon = $this->icon('service', $this->translate('Service')); - ?> - - icon('host', $this->translate('Host')); - $link = $this->link()->host($downtime->host_name, $downtime->host_display_name) - ?> - - translate( - 'Downtime on %s', - 'Downtime for host or service.' - ), - $link - ); ?> - -

+

translate('Downtime detail information') ?>

+ + + + - + - + diff --git a/modules/monitoring/application/views/scripts/downtimes/show.phtml b/modules/monitoring/application/views/scripts/downtimes/show.phtml index a683722ac..c7ddb0ae6 100644 --- a/modules/monitoring/application/views/scripts/downtimes/show.phtml +++ b/modules/monitoring/application/views/scripts/downtimes/show.phtml @@ -8,14 +8,6 @@ compact): ?> tabs; ?> - -

- translate('%d Downtimes'), count($downtimes)) ?> - 5 ? - sprintf($this->translate('(%d not shown)'), count ($downtimes) - 5) - : ''; - ?> -

+ isService ? $this->translate('Service') : $this->translate('Host') ?> + + isService): ?> + link()->service( + $downtime->service_description, + $downtime->service_display_name, + $downtime->host_name, + $downtime->host_display_name + ); + $icon = $this->icon('service', $this->translate('Service')); + ?> + + icon('host', $this->translate('Host')); + $link = $this->link()->host($downtime->host_name, $downtime->host_display_name) + ?> + + + +
translate('Author') ?>icon('user') ?> escape($this->downtime->author_name) ?>icon('user', $this->translate('User')) ?> escape($this->downtime->author_name) ?>
translate('Comment') ?>icon('comment') ?> escape($this->downtime->comment) ?>icon('comment', $this->translate('Comment')) ?> escape($this->downtime->comment) ?>
translate('Entry Time') ?>
@@ -40,10 +32,10 @@
isService): ?> - icon('service') ?> + icon('service', $this->translate('Service')) ?> service ?> on host_name ?>. - icon('host') ?> + icon('host', $this->translate('Host')) ?> host_name ?>.