From 8f0e932eaeb648964bdd11269ebc3fd68ebb4b65 Mon Sep 17 00:00:00 2001 From: ldfa Date: Sun, 16 Apr 2017 23:13:27 +0200 Subject: [PATCH] in status bar, replaced SHA with version --- requirements_dev.txt | 6 ++++++ servizi/servizi/settings.py | 4 ++-- servizi/spese/context_processors.py | 4 ++-- servizi/spese/docs/source/changelog.rst | 3 ++- servizi/spese/docs/source/installation.rst | 4 ++-- servizi/templates/base.html | 2 +- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/requirements_dev.txt b/requirements_dev.txt index 65d4040..ba87e29 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,14 +1,20 @@ alabaster==0.7.9 Babel==2.3.4 +bleach==1.4.3 colorama==0.3.7 Django==1.9.8 +django-expense==0.5.1 +django-filter==1.0.1 django-taggit==0.20.2 docutils==0.12 +html5lib==0.9999999 imagesize==0.7.1 Jinja2==2.8 MarkupSafe==0.23 Pygments==2.1.3 pytz==2016.6.1 +readme-renderer==0.7.0 +restview==2.7.0 six==1.10.0 snowballstemmer==1.2.1 Sphinx==1.4.6 diff --git a/servizi/servizi/settings.py b/servizi/servizi/settings.py index eeb191e..0ec606a 100644 --- a/servizi/servizi/settings.py +++ b/servizi/servizi/settings.py @@ -69,7 +69,7 @@ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', - 'spese.context_processors.commit_id', + 'spese.context_processors.commit_ver', ], }, }, @@ -189,7 +189,7 @@ } } -COMMIT_ID = '332ae0c' +COMMIT_VER = 'v0.5' diff --git a/servizi/spese/context_processors.py b/servizi/spese/context_processors.py index a5f284c..c0a17a8 100644 --- a/servizi/spese/context_processors.py +++ b/servizi/spese/context_processors.py @@ -1,5 +1,5 @@ from django.conf import settings # import the settings file -def commit_id(request): +def commit_ver(request): # return the value you want as a dictionary. you may add multiple values in there. - return {'COMMIT_ID': settings.COMMIT_ID} \ No newline at end of file + return {'COMMIT_VER': settings.COMMIT_VER} \ No newline at end of file diff --git a/servizi/spese/docs/source/changelog.rst b/servizi/spese/docs/source/changelog.rst index ea134c2..a9aabc2 100644 --- a/servizi/spese/docs/source/changelog.rst +++ b/servizi/spese/docs/source/changelog.rst @@ -12,7 +12,8 @@ Version 0.5 and partial *description*; * exporting expenses list to csv file; * in transfer fund detail, added reference to other expense; -* documents updated. +* user manual updated; +* added version in status bar. Version 0.4 ------------- diff --git a/servizi/spese/docs/source/installation.rst b/servizi/spese/docs/source/installation.rst index 4395cef..e2fe31a 100644 --- a/servizi/spese/docs/source/installation.rst +++ b/servizi/spese/docs/source/installation.rst @@ -17,9 +17,9 @@ Futhermore I take for granted you know how to use virtualenv and you'll use it to create a Django project to test this app. Hereafter I describe how install from a distribution. You can download it from `this tar.gz -`_ , +`_ , or from `this zip archive -`_ +`_ if you prefer a zipped version. .. note:: If you are a developer, maybe you'd like to clone from the diff --git a/servizi/templates/base.html b/servizi/templates/base.html index db0bb66..fdfcd0e 100644 --- a/servizi/templates/base.html +++ b/servizi/templates/base.html @@ -73,7 +73,7 @@
-

© 2016, 2017. Servizi. All Rights Reserved. {{ COMMIT_ID }}

+

© 2016, 2017. Servizi. All Rights Reserved. {{ COMMIT_VER }}