Module: check_mk
Branch: master
Commit: 5954ce1781a6254e95a6d038354f960ab7541a3c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5954ce1781a625…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Aug 24 15:54:56 2011 +0200
Better confirmation message for logwatch deletion
---
.bugs/149 | 10 +++++++---
web/htdocs/page_logwatch.py | 2 +-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/.bugs/149 b/.bugs/149
index 48a46fd..e8f5938 100644
--- a/.bugs/149
+++ b/.bugs/149
@@ -1,9 +1,13 @@
Title: Logfile Acknowledge: rename button to Delete?
Component: checks
+State: done
+Class: cleanup
+Date: 2011-02-17 15:02:35
Benefit: 1
-State: open
Cost: 1
-Date: 2011-02-17 15:02:35
-Class: cleanup
+Fun: 0
For some people this is confusing...
+
+2011-08-24 15:54:44: changed state open -> done
+In the confirmation dialog now the deletion is clearly outlined.
diff --git a/web/htdocs/page_logwatch.py b/web/htdocs/page_logwatch.py
index ac4c7ad..1a7001a 100644
--- a/web/htdocs/page_logwatch.py
+++ b/web/htdocs/page_logwatch.py
@@ -155,7 +155,7 @@ def do_log_ack(host, filename):
html.header("Acknowledge logfile %s" % file_display)
html.write("<a class=navi href=\"logwatch.py?host=%s\">All
logfiles of %s</a>\n" % tuple([htmllib.urlencode(host)] * 2))
ack = html.var('ack')
- if not html.confirm("Please confirm the deletion of the message from
<tt>%s</tt>" % filename):
+ if not html.confirm(_("Do you really want to acknowledge the log file
<tt>%s</tt> by <b>deleting</b> all stored messages?") %
filename):
html.footer()
return