diff --git a/bmsapp/templates/bmsapp/base.html b/bmsapp/templates/bmsapp/base.html
index ee54f525dc45c9b2f1198d53adcb140c5e3b462c..cc805a1c1967cc328393e6535a62b63f43adba94 100644
--- a/bmsapp/templates/bmsapp/base.html
+++ b/bmsapp/templates/bmsapp/base.html
@@ -35,8 +35,10 @@
{% block title %}{% endblock %}
{% block content %}{% endblock %}
-
+
+
+ BMON Version: {{ version_date }}
diff --git a/bmsapp/view_util.py b/bmsapp/view_util.py
index 5db321a1a5d23db3d71eee9c4440bb8782513e69..9832fb33d129f443d10bf5c964b60e16ae85737a 100644
--- a/bmsapp/view_util.py
+++ b/bmsapp/view_util.py
@@ -322,6 +322,7 @@ def version_date_string():
"""
ver_date = ''
try:
+ # Need to move into directory where this code is located to execute Git command
dir_git = os.path.dirname(__file__)
result = check_output('cd %s; git log -n1' % dir_git, shell=True)
for lin in result.splitlines():
diff --git a/bmsapp/views.py b/bmsapp/views.py
index 6f7bd2ab559c17241f62be4ec86b09d806214ec6..fd288ab79642b953c2266e5903e37a2a225dd5c2 100644
--- a/bmsapp/views.py
+++ b/bmsapp/views.py
@@ -27,9 +27,9 @@ DEFAULT_NAV_LINKS = ( ('Data Charts and Reports', 'reports', True),
TMPL_CONTEXT = {'bmsapp_title_text': getattr(settings, 'BMSAPP_TITLE_TEXT', 'Facility Monitoring'),
'bmsapp_header': getattr(settings, 'BMSAPP_HEADER', 'Facility Monitoring'),
- 'bmsapp_footer': getattr(settings, 'BMSAPP_FOOTER',
- 'Thanks to Alaska Housing Finance Corporation for providing most of the source code for this application.') + '
' + view_util.version_date_string(),
+ 'bmsapp_footer': getattr(settings, 'BMSAPP_FOOTER', 'Thanks to Alaska Housing Finance Corporation for providing most of the source code for this application.'),
'bmsapp_nav_links': getattr(settings, 'BMSAPP_NAV_LINKS', DEFAULT_NAV_LINKS),
+ 'version_date': view_util.version_date_string(),
}
def base_context():