38 lines
1.8 KiB
HTML
38 lines
1.8 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block extrahead %}
|
|
<link rel="shortcut icon" href="{% static 'RUG_template/images/favicon.ico' %}" />
|
|
<link rel="stylesheet" type="text/css" href="{% static 'RUG_template/style/custom_admin.css' %}"/>
|
|
{% endblock %}
|
|
|
|
{% block userlinks %}
|
|
{% comment %} Language choice. Should be put somewhere else when finale designs are done. {% endcomment %}
|
|
<form action="{% url 'set_language' %}" method="post" id="language_form" name="language_form">
|
|
{% csrf_token %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
{% get_available_languages as LANGUAGES %}
|
|
{% get_language_info_list for LANGUAGES as languages %}
|
|
<input name="next" type="hidden" value="{% if redirect_to %}{{ redirect_to }}{% endif %}">
|
|
<input type="hidden" name="language" id="language" value="{{LANGUAGE_CODE}}">
|
|
{% for language in languages %}
|
|
<a onclick="document.getElementById('language').value='{{ language.code }}'; document.forms['language_form'].submit(); return false;" href="#">
|
|
{% 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 %}
|
|
</form>
|
|
{% 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 %} |