From 52c17805c9415cd2401e2305b6acc3fa73c023e4 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 Feb 2015 17:30:51 +0100 Subject: [PATCH] Add proper titles to the history view refs #8458 --- .../application/views/scripts/show/history.phtml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/views/scripts/show/history.phtml b/modules/monitoring/application/views/scripts/show/history.phtml index 5c20e800b..d55258d90 100644 --- a/modules/monitoring/application/views/scripts/show/history.phtml +++ b/modules/monitoring/application/views/scripts/show/history.phtml @@ -29,7 +29,12 @@ $hostContext = $object->getType() === 'host'; function contactsLink($match, $view) { $links = array(); foreach (preg_split('/,\s/', $match[1]) as $contact) { - $links[] = $view->qlink($contact, 'monitoring/show/contact', array('contact' => $contact)); + $links[] = $view->qlink( + $contact, + 'monitoring/show/contact', + array('contact' => $contact), + array('title' => sprintf($view->translate('Show detailed information about %s'), $contact)) + ); } return '[' . implode(', ', $links) . ']'; } @@ -141,7 +146,12 @@ $output = $this->tickets ? preg_replace_callback( array( 'host' => $event->host_name, 'service' => $event->service_description - ) + ), + array('title' => sprintf( + $this->translate('Show detailed information for service %s on host %s'), + $event->service_display_name, + $event->host_display_name + )) ) : $this->escape($event->service_display_name), $event->host_display_name ) ?> @@ -150,7 +160,7 @@ $output = $this->tickets ? preg_replace_callback(
- icon($icon, $title); ?> escape($msg) ?> + icon($icon, $title); ?>