Module: check_mk
Branch: master
Commit: 202e758319857668a90aa791d693dcc88c0af339
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=202e7583198576…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue May 24 10:30:06 2011 +0200
WATO: Button for activating changes now always on top
---
web/htdocs/wato.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ba6de35..bc38ca6 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1084,6 +1084,10 @@ def mode_changelog(phase):
elif phase == "buttons":
html.context_button("Back", make_link([("mode",
"folder")]))
+ pending = parse_audit_log("pending")
+ if len(pending) > 0:
+ html.context_button(_("Activate Changes!"),
+ html.makeuri([("_action", "activate"),
("_transid", html.current_transid())]), True)
elif phase == "action":
if html.check_transaction():
@@ -1098,10 +1102,8 @@ def mode_changelog(phase):
else:
pending = parse_audit_log("pending")
if len(pending) > 0:
- message = "<h1>Changes which are not yet
activated:</h1>"
+ message = "<h1>" + _("Changes which are not yet
activated:") + "</h1>"
message += render_audit_log(pending, "pending")
- message += '<a href="%s" class=button>Activate
Changes!</a>' % \
- html.makeuri([("_action", "activate"),
("_transid", html.current_transid())])
html.show_warning(message)
else:
html.write("<p>No pending changes, monitoring server is up to
date.</p>")