diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml
index bad77424c..e181216b1 100644
--- a/modules/monitoring/application/views/scripts/list/services.phtml
+++ b/modules/monitoring/application/views/scripts/list/services.phtml
@@ -6,15 +6,15 @@ $selfUrl = 'monitoring/list/services';
if (! $this->compact): ?>
- = $this->tabs; ?>
+ = $this->tabs ?>
- = $this->render('list/components/selectioninfo.phtml'); ?>
- = $this->render('list/components/servicesummary.phtml'); ?>
+ = $this->render('list/components/selectioninfo.phtml') ?>
+ = $this->render('list/components/servicesummary.phtml') ?>
- = $this->sortBox; ?>
- = $this->limiter; ?>
- = $this->paginator; ?>
- = $this->filterEditor; ?>
+ = $this->sortBox ?>
+ = $this->limiter ?>
+ = $this->paginator ?>
+ = $this->filterEditor ?>
@@ -48,7 +48,7 @@ if (count($services) === 0) {
?>
- = Service::getStateText($service->service_state, true); ?>
+ = Service::getStateText($service->service_state, true) ?>
service_state !== 99): ?>
= $this->timeSince($service->service_last_state_change, $this->compact) ?>
@@ -62,23 +62,27 @@ if (count($services) === 0) {
|
= $this->iconImage()->service($service) ?>
= implode(' ', $this->serviceFlags($service)) ?>
- = $this->qlink(
- $service->service_display_name,
- $serviceLink,
- null,
- array('title' => sprintf(
- $this->translate('Show detailed information for service %s on host %s'),
- $service->service_display_name,
- $service->host_display_name
- ))
- ); ?>showHost): ?> on = $this->qlink(
+showHost): ?>= $this->qlink(
$service->host_display_name . ($service->host_state != 0 ? ' (' . Host::getStateText($service->host_state, true) . ')' : ''),
$hostLink,
null,
array('title' => sprintf($this->translate('Show detailed information for host %s'), $service->host_display_name))
- ); ?>
+ ) ?>:
+= $this->qlink(
+ $service->service_display_name,
+ $serviceLink,
+ null,
+ array(
+ 'title' => sprintf(
+ $this->translate('Show detailed information for service %s on host %s'),
+ $service->service_display_name,
+ $service->host_display_name
+ ),
+ 'class' => 'rowaction'
+ )
+) ?>
= $this->perfdata($service->service_perfdata, true, 8) ?>
- = $this->escape($this->ellipsis($service->service_output, 10000)); ?>
+ = $this->escape($this->ellipsis($service->service_output, 10000)) ?>
|
addColumns as $col): ?>
= $this->escape($service->$col) ?> |
diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js
index 84354c960..6f226407b 100644
--- a/public/js/icinga/events.js
+++ b/public/js/icinga/events.js
@@ -42,10 +42,15 @@
// Set first links href in a action table tr as row href:
$('table.action tr', el).each(function(idx, el) {
- var $a = $('a[href]', el).first();
+ var $a = $('a[href].rowaction', el).first();
if ($a.length) {
// TODO: Find out whether we leak memory on IE with this:
$(el).attr('href', $a.attr('href'));
+ return;
+ }
+ $a = $('a[href]', el).first();
+ if ($a.length) {
+ $(el).attr('href', $a.attr('href'));
}
});