From a1c925f9c924f55f9dc39f840a9e23a62d4b1af1 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Tue, 30 Oct 2012 15:38:12 -0400
Subject: [PATCH] Implemented:  - Show status messages to clients as long as the datalog is not processed (changes pending...)  - missing:    - template code in templates other than database list    - language entries other than web_database, web_domain, web_database_user     

---
 interface/lib/app.inc.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 71566e6..e0b237b 100755
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -213,6 +213,12 @@
 		$this->tpl->setVar('app_title', $this->_conf['app_title']);
 		if(isset($_SESSION['s']['user'])) {
 			$this->tpl->setVar('app_version', $this->_conf['app_version']);
+            // get pending datalog changes
+            $datalog = $this->db->datalogStatus();
+            $this->tpl->setVar('datalog_changes_txt', $this->lng('datalog_changes_txt'));
+            $this->tpl->setVar('datalog_changes_end_txt', $this->lng('datalog_changes_end_txt'));
+            $this->tpl->setVar('datalog_changes_count', $datalog['count']);
+            $this->tpl->setLoop('datalog_changes', $datalog['entries']);
 		} else {
 			$this->tpl->setVar('app_version', '');
 		}

--
Gitblit v1.9.1