Include version in footer

This commit is contained in:
Michal Čihař 2012-02-29 11:08:03 +01:00
parent d517a9a29a
commit 934862b103
4 changed files with 8 additions and 1 deletions

View File

@ -24,7 +24,7 @@
{% block content %}
{% endblock %}
<ul class="footer">
<li>{% blocktrans %}Powered by <a href="http://weblate.org">Weblate</a>{% endblocktrans %}</li>
<li>{% blocktrans %}Powered by <a href="http://weblate.org">Weblate {{ version }}</a>{% endblocktrans %}</li>
</ul>
</body>
</html>

View File

@ -145,6 +145,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.media',
'django.core.context_processors.request',
'django.core.context_processors.csrf',
'trans.context_processors.version',
)
# A sample logging configuration. The only tangible logging

View File

@ -0,0 +1 @@
VERSION = 0.1

View File

@ -0,0 +1,5 @@
import trans
def version(request):
return {'version': trans.VERSION}