Module: check_mk
Branch: master
Commit: 352c2961f5d2461010f5fcda040a292799c32405
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=352c2961f5d246…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Dec 20 12:57:33 2012 +0100
Fix layout of error messages
---
web/htdocs/hooks.py | 2 +-
web/htdocs/pages.css | 2 +-
web/htdocs/wato.py | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/hooks.py b/web/htdocs/hooks.py
index 7a93e98..abae1e3 100644
--- a/web/htdocs/hooks.py
+++ b/web/htdocs/hooks.py
@@ -54,6 +54,6 @@ def call(name, *args):
txt = StringIO.StringIO()
t, v, tb = sys.exc_info()
traceback.print_exception(t, v, tb, None, txt)
- html.show_error("<h3>" + _("Error executing
hook") + " %s #%d: %s</h3>"
+ html.show_error("<h1>" + _("Error executing
hook") + " %s #%d: %s</h1>"
"<pre>%s</pre>" % (name, n, e,
txt.getvalue()))
raise
diff --git a/web/htdocs/pages.css b/web/htdocs/pages.css
index ed8267f..79cdbba 100644
--- a/web/htdocs/pages.css
+++ b/web/htdocs/pages.css
@@ -715,7 +715,7 @@ div.really h1, div.success h1, div.error h1, div.message h1,
div.warning h1 {
font-size: 12pt;
font-weight: bold;
margin-bottom: 5px;
- color: #000;
+ color: white;
margin-left: 0px;
}
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 9e39df2..676ee05 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3439,7 +3439,7 @@ def mode_changelog(phase):
if config.debug:
raise
else:
- raise MKUserError(None, "<h3>%s</h3>%s" %
(_("Cannot activate changes"), e))
+ raise MKUserError(None, "<h1>%s</h1>%s" %
(_("Cannot activate changes"), e))
sitestatus_do_async_replication = False # see below
if html.has_var("_siteaction"):
@@ -4061,7 +4061,7 @@ def check_mk_local_automation(command, args=[],
indata=""):
except Exception, e:
if config.debug:
raise
- html.show_error("<h3>Cannot activate changes</h3>%s" %
e)
+ html.show_error("<h1>Cannot activate changes</h1>%s" %
e)
return
if config.debug: