Module: check_mk
Branch: master
Commit: 97c539aea4dec3a267654525bec37cf20b1c88ff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97c539aea4dec3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 18 12:03:04 2015 +0100
Fixed broken links to edit host page after WATO recode
---
web/plugins/icons/wato.py | 2 +-
web/plugins/wato/builtin_attributes.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/icons/wato.py b/web/plugins/icons/wato.py
index 2bcf61b..486a0e2 100644
--- a/web/plugins/icons/wato.py
+++ b/web/plugins/icons/wato.py
@@ -38,7 +38,7 @@ def wato_link(folder, site, hostname, where):
help = _("Edit services")
icon = "services"
else:
- url += "&mode=edithost"
+ url += "&mode=edit_host"
help = _("Edit this host")
icon = "wato"
return icon, help, url
diff --git a/web/plugins/wato/builtin_attributes.py
b/web/plugins/wato/builtin_attributes.py
index 249acb4..abd7e8b 100644
--- a/web/plugins/wato/builtin_attributes.py
+++ b/web/plugins/wato/builtin_attributes.py
@@ -107,7 +107,7 @@ class ParentsAttribute(ValueSpecAttribute):
def paint(self, value, hostname):
parts = [ '<a href="%s">%s</a>' % (
- "wato.py?" + html.urlencode_vars([("mode",
"edithost"), ("host", hn)]), hn)
+ "wato.py?" + html.urlencode_vars([("mode",
"edit_host"), ("host", hn)]), hn)
for hn in value ]
return "", ", ".join(parts)