From 14f334da61fd143405dd24bc97478578b2869164 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 24 Jun 2014 07:41:41 -0700 Subject: Adding current version to the footer. --- build.xml | 10 ++++++++++ src/templates/pages/version.ftl | 1 + src/templates/templates/footer.ftl | 3 +++ src/templates/templates/gitversion.ftl | 1 + 4 files changed, 15 insertions(+) create mode 100644 src/templates/pages/version.ftl create mode 100644 src/templates/templates/gitversion.ftl diff --git a/build.xml b/build.xml index 625c4a6..951cf03 100644 --- a/build.xml +++ b/build.xml @@ -14,6 +14,16 @@ + + + + + + + + + + diff --git a/src/templates/pages/version.ftl b/src/templates/pages/version.ftl new file mode 100644 index 0000000..d8a38a2 --- /dev/null +++ b/src/templates/pages/version.ftl @@ -0,0 +1 @@ +Current version <#include "/templates/gitversion.ftl"> diff --git a/src/templates/templates/footer.ftl b/src/templates/templates/footer.ftl index cc080de..8ea05fe 100644 --- a/src/templates/templates/footer.ftl +++ b/src/templates/templates/footer.ftl @@ -7,6 +7,9 @@
©2013 Foursquare Church + <#if config.getDomain() != "prod"> + - <#include "/templates/gitversion.ftl"> +
diff --git a/src/templates/templates/gitversion.ftl b/src/templates/templates/gitversion.ftl new file mode 100644 index 0000000..09e2f95 --- /dev/null +++ b/src/templates/templates/gitversion.ftl @@ -0,0 +1 @@ +@repository.version@ -- cgit v1.2.3