Module: check_mk
Branch: master
Commit: c4433f628f41a1f6d2614a16e43ae8af9528c8b9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c4433f628f41a1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Nov 13 14:19:30 2010 +0100
Sidebar snapin site_status: make link target configurable
---
ChangeLog | 1 +
web/plugins/sidebar/shipped.py | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0ad7a4c..7c18255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -78,6 +78,7 @@
* Fixed mousewheel scrolling in opera/chrome
* Fixed resize bug on refresh in chrome
* New view for all services of a site
+ * Sidebar snapin site_status: make link target configurable
1.1.8:
Core, Setup, etc.:
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index e87fe63..5a892a5 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -368,7 +368,11 @@ def render_sitestatus():
title = "Site %s is switched off" % site["alias"]
else:
switch = "off"
- text = link(site["alias"],
"view.py?view_name=sitehosts&site=%s" % sitename)
+ try:
+ linkview = config.sitestatus_link_view
+ except:
+ linkview = "sitehosts"
+ text = link(site["alias"],
"view.py?view_name=%s&site=%s" % (linkview, sitename))
ex = html.site_status[sitename].get("exception")
shs = html.site_status[sitename].get("status_host_state")