diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index fd80e4d2a..31648cb3c 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -32,61 +32,63 @@ if (! $this->compact): ?> $hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?> -

- host_state, true) ?> +

host_state, true) ?>
host_state !== 99): ?> -
- timeSince($host->host_last_state_change, $this->compact) ?> - host_state > 0 && (int) $host->host_state_type === 0): ?> -
- Soft host_attempt ?> +
+ timeSince($host->host_last_state_change, $this->compact) ?> + host_state > 0 && (int) $host->host_state_type === 0): ?> +
Soft host_attempt ?>
+ +
- -

- - iconImage()->host($host) ?> - hostFlags($host)) ?> - qlink( - $host->host_display_name, - $hostLink, - null, - array( - 'title' => sprintf( - $this->translate('Show detailed information for host %s'), - $host->host_display_name - ), - 'class' => 'rowaction' - ) - ) ?> - host_name])): ?> - (qlink( - sprintf( - $this->translatePlural( - '%u unhandled service', '%u unhandled services', $summary[$host->host_name] - ), - $summary[$host->host_name] - ), - 'monitoring/list/services', - array( - 'host' => $host->host_name, - 'service_problem' => 1, - 'service_handled' => 0 - ), - array( - 'title' => sprintf( + +
+ iconImage()->host($host) ?> + qlink( + $host->host_display_name, + $hostLink, + null, + array( + 'title' => sprintf( + $this->translate('Show detailed information for host %s'), + $host->host_display_name + ), + 'class' => 'rowaction' + ) + ) ?> + host_name])): ?> + (qlink( + sprintf( $this->translatePlural( - 'List %s unhandled service problem on host %s', - 'List %s unhandled service problems on host %s', - $summary[$host->host_name] + '%u unhandled service', '%u unhandled services', $summary[$host->host_name] ), - $summary[$host->host_name], - $host->host_name + $summary[$host->host_name] + ), + 'monitoring/list/services', + array( + 'host' => $host->host_name, + 'service_problem' => 1, + 'service_handled' => 0 + ), + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s unhandled service problem on host %s', + 'List %s unhandled service problems on host %s', + $summary[$host->host_name] + ), + $summary[$host->host_name], + $host->host_name + ) ) - ) - ) ?>) - -

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

+ ) ?>) + + hostFlags($host)) ?> +
+

+ pluginOutput($this->ellipsis($host->host_output, 10000), true) ?> +

addColumns 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 e72a11b8a..a44ec6489 100644 --- a/modules/monitoring/application/views/scripts/list/services.phtml +++ b/modules/monitoring/application/views/scripts/list/services.phtml @@ -45,7 +45,7 @@ if (! $this->compact): ?> $serviceStateName = Service::getStateText($service->service_state); ?> - service_state, true) ?> +
service_state, true) ?>
service_state !== 99): ?>
timeSince($service->service_last_state_change, $this->compact) ?>