Module: check_mk
Branch: master
Commit: 82cac9385a2fc971abf68c3a178ecdeeba22c02f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82cac9385a2fc9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 9 17:52:14 2012 +0200
WATO: global settings: make values clickable
---
web/htdocs/wato.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index efdcc1d..573dc9a 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5202,13 +5202,15 @@ def mode_globalvars(phase):
html.icon_button(toggle_url, _("Immediately toggle this
setting"),
"snapin_greyswitch_" + (current_settings[varname] and
"on" or "off"))
else:
- html.write(valuespec.value_to_text(current_settings[varname]))
+ html.write('<a href="%s">%s</a>' %
+ (edit_url, valuespec.value_to_text(current_settings[varname])))
else:
if isinstance(valuespec, Checkbox):
html.icon_button(toggle_url, _("Immediately toggle this
setting"),
"snapin_greyswitch_" + (defaultvalue and "on" or
"off"))
else:
- html.write(valuespec.value_to_text(defaultvalue))
+ html.write('<a href="%s">%s</a>' %
+ (edit_url, valuespec.value_to_text(defaultvalue)))
html.write("</td>")
html.write('</tr>')
html.write("</table>")