Module: check_mk
Branch: master
Commit: 506ca6352509d188a2bb8962ef29031ced8eff06
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=506ca6352509d1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 24 10:17:28 2012 +0200
Fix: Formating the check parameters title hover correctly now
---
web/htdocs/wato.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2ed80c0..c40939d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2162,7 +2162,12 @@ def show_service_table(host, firsttime):
paramtext = _("Invalid check parameter: %s!") % e
paramtext += _(" The parameter is: %r") % (params,)
- title = _("Check parameters for this service") + ": "
+ paramtext
+ # Strip all html code from the paramtext
+ paramtext = paramtext.replace('</td>', '\t')
+ paramtext = paramtext.replace('</tr>', '\n')
+ paramtext = htmllib.strip_tags(paramtext)
+
+ title = _("Check parameters for this service") + ":
\n" + paramtext
html.write('<a href="%s"><img title="%s"
class=icon src="images/icon_rulesets.png"></a>' %
(url, title))