1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-21 14:38:22 +02:00

Remove old views

This commit is contained in:
Alexandre Iooss
2019-08-09 22:26:32 +02:00
parent b4cfb8d3b6
commit 7f2f22f156
16 changed files with 56 additions and 363 deletions

View File

@ -25,17 +25,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% endif %}
{% endblock %}
{% block userlinks %}
{# Link to our apps outside of admin #}
<span class="dropdown">
<a href="{% url 'media:index' %}">{% trans 'Library' %}</a>
<span class="dropdown-content">
<a href="{% url "media:index" %}">Emprunts</a>
<a href="{% url "media:index-auteurs" %}">Auteurs</a>
<a href="{% url "media:index-medias" %}">Medias</a>
<a href="{% url "media:index-jeux" %}">Jeux</a>
</span>
</span> /
{% if user.is_authenticated %}
{% if perms.users.add_user %}
<a href="{% url "users:new-user" %}">Nouveau utilisateur</a> /
@ -47,7 +36,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% if available_apps %}
{# When in admin site, list all admin pages and documentation #}
<span class="dropdown">
<a href="{% url 'admin:index' %}">{% trans 'View admin' %}</a>
<a href="{% url 'admin:index' %}">{% trans 'Explore database' %}</a>
<span class="dropdown-content">
{% for app in available_apps %}
{% for model in app.models %}
@ -66,7 +55,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
</span> /
{% elif user.is_staff %}
{# When not in admin site, but user is staff then add a link #}
<a href="{% url 'admin:index' %}">{% trans 'View admin' %}</a> /
<a href="{% url 'admin:index' %}">{% trans 'Explore database' %}</a> /
{% endif %}
<a href="{% url 'logout' %}">{% trans 'Log out' %}</a>
{% else %}