Module: check_mk
Branch: master
Commit: 164f9b1ff55532f141214b90c1924a0433a2d2d5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=164f9b1ff55532…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 11 14:05:06 2013 +0200
Disable tag folding if only one tag topic is used
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index c2cb14d..1c2ea9b 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10814,7 +10814,7 @@ def render_condition_editor(tag_specs, varprefix=""):
auxtags = dict(group_hosttags_by_topic(config.wato_aux_tags))
hosttags = group_hosttags_by_topic(config.wato_host_tags)
- make_foldable = bool(hosttags)
+ make_foldable = len(hosttags) > 1
for topic, grouped_tags in hosttags:
if make_foldable:
html.begin_foldable_container("topic", topic, True,
"<b>%s</b>" % (topic or _('Host tags')))