Skip to content

Commit

Permalink
in status bar, replaced SHA with version
Browse files Browse the repository at this point in the history
  • Loading branch information
l-dfa committed Apr 16, 2017
1 parent 45920b4 commit 8f0e932
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions 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
Expand Down
4 changes: 2 additions & 2 deletions servizi/servizi/settings.py
Expand Up @@ -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',
],
},
},
Expand Down Expand Up @@ -189,7 +189,7 @@
}
}

COMMIT_ID = '332ae0c'
COMMIT_VER = 'v0.5'



Expand Down
4 changes: 2 additions & 2 deletions 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}
return {'COMMIT_VER': settings.COMMIT_VER}
3 changes: 2 additions & 1 deletion servizi/spese/docs/source/changelog.rst
Expand Up @@ -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
-------------
Expand Down
4 changes: 2 additions & 2 deletions servizi/spese/docs/source/installation.rst
Expand Up @@ -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
<https://github.com/l-dfa/django-spese/releases/download/v0.1/django-spese-0.1.tar.gz>`_ ,
<https://github.com/l-dfa/django-spese/releases/download/v0.5/django-spese-0.5.tar.gz>`_ ,
or from `this zip archive
<https://github.com/l-dfa/django-spese/releases/download/v0.1/django-spese-0.1.zip>`_
<https://github.com/l-dfa/django-spese/releases/download/v0.5/django-spese-0.5.zip>`_
if you prefer a zipped version.

.. note:: If you are a developer, maybe you'd like to clone from the
Expand Down
2 changes: 1 addition & 1 deletion servizi/templates/base.html
Expand Up @@ -73,7 +73,7 @@
</nav>
</div>
<div class="four columns s-text-right">
<p>&copy; 2016, 2017. Servizi. All Rights Reserved. {{ COMMIT_ID }}</p>
<p>&copy; 2016, 2017. Servizi. All Rights Reserved. {{ COMMIT_VER }}</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 8f0e932

Please sign in to comment.