35 lines
1.3 KiB
HTML
35 lines
1.3 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
<!-- custom filter module -->
|
|
{% load i18n_switcher %}
|
|
|
|
{% block extrahead %}
|
|
<link rel="shortcut icon" href="{% static 'RUG_template/images/favicon.ico' %}" />
|
|
<link rel="stylesheet" type="text/css" href="{% static 'RUG_template/css/custom_admin.css' %}"/>
|
|
{% endblock %}
|
|
|
|
{% block userlinks %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
{% get_available_languages as LANGUAGES %}
|
|
{% get_language_info_list for LANGUAGES as languages %}
|
|
{% for language in languages %}
|
|
<a href="{{ request|switch_i18n:language.code}}">
|
|
{% with 'RUG_template/images/flag-'|add:language.code|add:'.png' as image_static %}
|
|
<img class="i18n_flag" src="{% static image_static %}" title="{% trans 'Language' %} {{ language.name_translated }}"/>
|
|
{% endwith %}
|
|
</a> /
|
|
{% endfor %}
|
|
{% if user.is_active and user.is_staff %}
|
|
{% url 'django-admindocs-docroot' as docsroot %}
|
|
{% if docsroot %}
|
|
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if user.has_usable_password %}
|
|
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
|
|
{% endif %}
|
|
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
|
|
{% endblock %} |