Module: check_mk
Branch: master
Commit: db3dd53119bc69fa3ccbf192c1393dfe1b9891c1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=db3dd53119bc69…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 6 11:02:57 2010 +0100
wato: fixed links in wato snapin (reverted latest "fix")
---
web/plugins/sidebar/wato.py | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/web/plugins/sidebar/wato.py b/web/plugins/sidebar/wato.py
index 86dc9e2..aeba3f7 100644
--- a/web/plugins/sidebar/wato.py
+++ b/web/plugins/sidebar/wato.py
@@ -19,7 +19,7 @@ def render_wato_files():
state = html.site_status[sitename]["state"]
if state != "disabled":
html.write("<h3>%s</h3>\n" %
site["alias"])
- ajax_url = site["url_prefix"] +
"check_mk/ajax_wato_files.py?site=" + sitename
+ ajax_url = site["url_prefix"] +
"check_mk/ajax_wato_files.py"
html.javascript("document.write(get_url_sync('%s'));" % ajax_url)
else:
ajax_wato_files(html)
@@ -27,14 +27,10 @@ def render_wato_files():
def ajax_wato_files(h):
global html
html = h
- sitename = html.var('site', '')
if config.may("use_wato"):
for filename, title, roles in config.config_files:
if config.role in roles:
- if sitename:
- bulletlink(title, "/%s/check_mk/wato.py?filename=%s" %
(sitename, filename))
- else:
- bulletlink(title, "wato.py?filename=%s" % filename)
+ bulletlink(title, "wato.py?filename=%s" % filename)
sidebar_snapins["wato"] = {
@@ -44,5 +40,3 @@ sidebar_snapins["wato"] = {
"render" : render_wato_files,
"allowed" : [ "admin", "user" ],
}
-
-