From bd9d06574d83f7a519b43681237b42b6eaddd725 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 Feb 2015 17:07:21 +0100 Subject: [PATCH] Ensure that the link() view helper adds proper titles refs #8458 --- .../monitoring/application/views/helpers/Link.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/helpers/Link.php b/modules/monitoring/application/views/helpers/Link.php index 96972bd55..8faf6e5fb 100644 --- a/modules/monitoring/application/views/helpers/Link.php +++ b/modules/monitoring/application/views/helpers/Link.php @@ -32,7 +32,9 @@ class Zend_View_Helper_Link extends Zend_View_Helper_Abstract { return $this->view->qlink( $linkText, - $this->view->href('monitoring/host/show', array('host' => $host)) + 'monitoring/host/show', + array('host' => $host), + array('title' => sprintf($this->view->translate('Show detailed information for host %s'), $host)) ); } @@ -52,7 +54,13 @@ class Zend_View_Helper_Link extends Zend_View_Helper_Abstract $this->view->translate('%s on %s', 'Service running on host'), $this->view->qlink( $serviceLinkText, - $this->view->href('monitoring/service/show', array('host' => $host, 'service' => $service)) + '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 + )) ), $this->host($host, $hostLinkText) );