Include version in footer
This commit is contained in:
parent
d517a9a29a
commit
934862b103
@ -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>
|
||||
|
@ -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
|
||||
|
@ -0,0 +1 @@
|
||||
VERSION = 0.1
|
5
trans/context_processors.py
Normal file
5
trans/context_processors.py
Normal file
@ -0,0 +1,5 @@
|
||||
import trans
|
||||
|
||||
def version(request):
|
||||
return {'version': trans.VERSION}
|
||||
|
Loading…
Reference in New Issue
Block a user