From 7580d57c1d85d281ffdd5fe5d165167cd693b962 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 19 Jan 2015 14:21:55 +0100 Subject: [PATCH] monitoring: Use the ellipsis string helper when viewing plugin output in host and service list --- modules/monitoring/application/views/scripts/list/hosts.phtml | 2 +- .../monitoring/application/views/scripts/list/services.phtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index 4d60eacf4..920a77e01 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -115,7 +115,7 @@ if ($hosts->count() === 0) { array('style' => 'font-weight: normal') ) ?>) -

escape(substr($host->host_output, 0, 10000)) ?>

+

escape($this->ellipsis($host->host_output, 10000)) ?>

extraColumns as $col): ?> escape($host->$col) ?> diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml index 26249b710..0b63c7887 100644 --- a/modules/monitoring/application/views/scripts/list/services.phtml +++ b/modules/monitoring/application/views/scripts/list/services.phtml @@ -112,7 +112,7 @@ foreach ($services as $service): (host_state, true)); ?>)
-

escape(substr($service->service_output, 0, 10000)); ?>

+

escape($this->ellipsis($service->service_output, 10000)); ?>

extraColumns as $col): ?> escape($service->$col) ?>