From 588f2f78879e63ea2dc8d9ee5113fa35ad484d8e Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Fri, 2 Oct 2015 12:49:37 +0000
Subject: [PATCH] Include mtn revision in rendered pages

---
 i2p2www/pages/global/layout.html | 4 ++++
 site-updater.sh                  | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/i2p2www/pages/global/layout.html b/i2p2www/pages/global/layout.html
index afda10c39..0a22a1359 100644
--- a/i2p2www/pages/global/layout.html
+++ b/i2p2www/pages/global/layout.html
@@ -83,5 +83,9 @@
         {% include "global/footer.html" %}
       </footer>
     </div>
+
+<!--
+{% include "include/mtnversion" ignore missing %}
+-->
   </body>
 </html>
diff --git a/site-updater.sh b/site-updater.sh
index 901ad8964..29d6d11cd 100755
--- a/site-updater.sh
+++ b/site-updater.sh
@@ -17,6 +17,8 @@ if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "
   ./compile-messages.sh
 fi
 
+echo "Monotone revision: $(mtn log --no-files --no-graph --to h: | grep Revision | sed 's/Revision: //')" >./i2p2www/pages/include/mtnversion
+
 if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null ; then
   echo "Python files changed, restarting server"
   touch $TOUCHFILE
-- 
GitLab