diff --git a/modules/monitoring/application/views/helpers/Link.php b/modules/monitoring/application/views/helpers/Link.php index 35c5a4cbc..e37375d14 100644 --- a/modules/monitoring/application/views/helpers/Link.php +++ b/modules/monitoring/application/views/helpers/Link.php @@ -45,10 +45,11 @@ class Zend_View_Helper_Link extends Zend_View_Helper_Abstract * @param string $serviceLinkText Text for the service link, e.g. the service's display name * @param string $host Hostname * @param string $hostLinkText Text for the host link, e.g. the host's display name + * @param string $class An optional class to use for this link * * @return string */ - public function service($service, $serviceLinkText, $host, $hostLinkText) + public function service($service, $serviceLinkText, $host, $hostLinkText, $class = null) { return sprintf( '%s: %s', @@ -57,11 +58,14 @@ class Zend_View_Helper_Link extends Zend_View_Helper_Abstract $serviceLinkText, 'monitoring/service/show', array('host' => $host, 'service' => $service), - array('title' => sprintf( - $this->view->translate('Show detailed information for service %s on host %s'), - $service, - $host - )) + array( + 'title' => sprintf( + $this->view->translate('Show detailed information for service %s on host %s'), + $service, + $host + ), + 'class' => $class + ) ) ); } diff --git a/modules/monitoring/application/views/scripts/list/eventhistory.phtml b/modules/monitoring/application/views/scripts/list/eventhistory.phtml index 538702a64..ab9cb2331 100644 --- a/modules/monitoring/application/views/scripts/list/eventhistory.phtml +++ b/modules/monitoring/application/views/scripts/list/eventhistory.phtml @@ -82,7 +82,7 @@ if (count($history) === 0) { link()->service( - $event->service_description, $event->service_display_name, $event->host_name, $event->host_display_name + $event->service_description, $event->service_display_name, $event->host_name, $event->host_display_name, 'rowaction' ) ?> link()->host($event->host_name, $event->host_display_name) ?>