Module: check_mk
Branch: master
Commit: 338e6e92c9b54058887327015ac37b6b38f5d9df
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=338e6e92c9b540…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 21 10:23:18 2011 +0200
WATO: fix indentation of hosts snapin
---
web/plugins/sidebar/wato.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/web/plugins/sidebar/wato.py b/web/plugins/sidebar/wato.py
index 1fa2b99..b216c56 100644
--- a/web/plugins/sidebar/wato.py
+++ b/web/plugins/sidebar/wato.py
@@ -46,7 +46,12 @@ def render_wato_files():
def ajax_wato_files():
if config.may("use_wato"):
+ tree = wato.api.get_folder_tree()
+ if len(tree[".folders"]) == 0:
+ html.write("<ul>")
render_linktree_folder(wato.api.get_folder_tree())
+ if len(tree[".folders"]) == 0:
+ html.write("</ul>")
def render_linktree_folder(f):