Module: check_mk
Branch: master
Commit: eebc8edb99a856957d6427955d2f8777910755bc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eebc8edb99a856…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 21 11:55:08 2011 +0100
Optimized wraps in host lists tag column
---
ChangeLog | 3 +++
web/htdocs/wato.py | 7 ++++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ac58691..7f15fe7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,9 @@
* dell_powerconnect_cpu: renamed service from CPU to "CPU utilization", in
order to be consistent with other checks
+ WATO:
+ * Optimized wraps in host lists tag column
+
1.1.13i1:
Multisite:
* New nifty sidebar snapin "Speed-O-Meter"
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 86e8364..f2c7740 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1119,7 +1119,12 @@ def show_hosts(folder):
html.write('<td><img class=icon src="images/icon_%s.png"
title="%s"></td>' % (icon, title))
# Raw tags
- html.write("<td>%s</td>" % "<b style='color:
#888;'>|</b>".join(host[".tags"]))
+ #
+ # Optimize wraps:
+ # 1. add <nobr> round the single tags to prevent wrap within tags
+ # 2. add "zero width space" (​)
+ html.write("<td>%s</td>" % "<b style='color:
#888;'>|</b>​".join(
+ [ '<nobr>%s</nobr>' %
t for t in host[".tags"] ]))
# Show attributes
for attr, topic in host_attributes: