Skip to content

Commit

Permalink
Include Django version into demo app footer
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Feb 11, 2017
1 parent 30e77bf commit e1c32be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions suit/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ <h1 id="site-name">

<div class="col-xs-12 col-sm-3 text-sm-right footer-version">
{% block footer_branding %}
{% with site_header|default:_('Django administration') as admin_name %}
{% with admin_name=site_header|default:_('Django administration') django_version='django_version'|suit_conf:request %}
{{ admin_name }}
{% if admin_name == 'Django Suit' %}
v{{ 'version'|suit_conf:request }}
<span style="font-size: 12px">
{{ 'version'|suit_conf:request }}<br/>
Django {{ django_version }}
</span>
{% endif %}
{% endwith %}
{% endblock %}
Expand Down

0 comments on commit e1c32be

Please sign in to comment.