Module: check_mk
Branch: master
Commit: f3b4aed4d728f01a8608fe4effb836516011c483
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f3b4aed4d728f0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue May 22 07:30:57 2012 +0200
FIX: remove refresh button from dashboard.
---
ChangeLog | 4 ++++
web/htdocs/views.py | 8 +++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2f9a89f..589bbb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1.2.0b5:
+ Multisite:
+ * FIX: remove refresh button from dashboard.
+
1.2.0b4:
Core:
* New configuration variable snmp_timing, allowing to
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 4785f85..9fbec92 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1616,9 +1616,11 @@ def show_context_links(thisview, active_filters, show_filters,
display_options,
else:
empty_toggle_button()
- if 'R' in display_options and config.may("view_option_refresh"):
- choices = [ [x, {0:_("off")}.get(x,str(x)) + (x and "" or
"")] for x in config.view_option_refreshes ]
- view_option_switcher(thisview, "refresh", choices)
+ if 'R' in display_options and
config.may("view_option_refresh"):
+ choices = [ [x, {0:_("off")}.get(x,str(x)) + (x and "" or
"")] for x in config.view_option_refreshes ]
+ view_option_switcher(thisview, "refresh", choices)
+ else:
+ empty_toggle_button()
# WATO: If we have a host context, then show button to WATO, if permissions allow
this