Module: check_mk
Branch: master
Commit: eb27a7d1d6842c2352b668f0b759b02b0b1f8b76
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eb27a7d1d6842c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 11 13:48:09 2012 +0200
Show pending changes in WATO snapin
---
ChangeLog | 1 +
web/plugins/sidebar/wato.py | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e679e7c..62562ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
* New layout of global settings
* Folder layout: show contact groups of folder
* Folder movement: always show complete path to target folder
+ * Sidebar snapin: show pending changes
* FIX: fix parent scan on single site installations
* FIX: fix folder visibility permission handling
* FIX: honor folder-permissions when creating, deleting
diff --git a/web/plugins/sidebar/wato.py b/web/plugins/sidebar/wato.py
index 26c3c2c..5f51afe 100644
--- a/web/plugins/sidebar/wato.py
+++ b/web/plugins/sidebar/wato.py
@@ -46,6 +46,10 @@ def render_wato():
if config.may("wato." + permission) or
config.may("wato.seeall"):
iconlink(title, "wato.py?mode=%s" % mode, icon)
+ num_pending = wato.api.num_pending_changes()
+ if num_pending:
+ footnotelinks([(_("%d changes") % num_pending,
"wato.py?mode=changelog")])
+
sidebar_snapins["admin"] = {
"title" : _("WATO · Configuration"),