Module: check_mk
Branch: master
Commit: 442986187b1aa3f42ee3394d18ce3b15e88cb211
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=442986187b1aa3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Sep 14 17:05:00 2011 +0200
Tactical Overview: make link clickable even if count is zero
---
ChangeLog | 1 +
web/plugins/sidebar/shipped.py | 12 ++++--------
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 72007bc..ba572e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
* Added display_option "w" to disable limit messages and livestatus errors
in views
* Service Perfdata Sorters are sorting correctly now
* Added "Administration" snapin to default sidebar
+ * Tactical Overview: make link clickable even if count is zero
Livestatus:
* Write messages after initialization into an own livestatus.log
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 233ada5..d1cc63d 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -531,14 +531,10 @@ def render_tactical_overview():
html.write('<td class=total><a target="main"
href="view.py?view_name=all%ss">%d</a></td>' % (what,
data[0]))
unhandled = False
for value in data[1:]:
- if value > 0:
- href = "view.py?view_name=" + view
- if unhandled:
-
- href += "&is_%s_acknowledged=0" % what
- text = link(str(value), href)
- else:
- text = str(value)
+ href = "view.py?view_name=" + view
+ if unhandled:
+ href += "&is_%s_acknowledged=0" % what
+ text = link(str(value), href)
html.write('<td class="%s">%s</td>' % (value ==
0 and " " or "states prob", text))
unhandled = True
html.write("</tr>\n")