~ubuntu-branches/ubuntu/utopic/python-django/utopic

« back to all changes in this revision

Viewing changes to django/contrib/admin/templates/admin/base.html

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% load admin_static %}{% load url from future %}<!DOCTYPE html>
 
1
{% load admin_static %}<!DOCTYPE html>
2
2
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
3
3
<head>
4
4
<title>{% block title %}{% endblock %}</title>
26
26
        {% if user.is_active and user.is_staff %}
27
27
        <div id="user-tools">
28
28
            {% trans 'Welcome,' %}
29
 
            <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
 
29
            <strong>{% filter force_escape %}{% firstof user.get_short_name user.get_username %}{% endfilter %}</strong>.
30
30
            {% block userlinks %}
31
31
                {% url 'django-admindocs-docroot' as docsroot %}
32
32
                {% if docsroot %}
33
33
                    <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
34
34
                {% endif %}
 
35
                {% if user.has_usable_password %}
35
36
                <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
 
37
                {% endif %}
36
38
                <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
37
39
            {% endblock %}
38
40
        </div>