1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-30 04:31:08 +02:00

Simple library views

This commit is contained in:
Alexandre Iooss
2019-08-08 21:08:24 +02:00
parent 9f52bed890
commit 0c504e85fc
15 changed files with 49 additions and 293 deletions

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-03 13:24+0200\n"
"POT-Creation-Date: 2019-08-08 20:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,22 +18,22 @@ msgid "Welcome,"
msgstr ""
#: templates/admin/base_site.html:29
msgid "My profile"
msgstr "Mon profil"
msgid "Library"
msgstr "Explorer la médiatèque"
#: templates/admin/base_site.html:41 templates/admin/base_site.html:60
#: templates/admin/base_site.html:42 templates/admin/base_site.html:61
msgid "View admin"
msgstr "Administration"
#: templates/admin/base_site.html:53
#: templates/admin/base_site.html:54
msgid "Documentation"
msgstr ""
#: templates/admin/base_site.html:62
#: templates/admin/base_site.html:63
msgid "Log out"
msgstr ""
#: templates/admin/base_site.html:64 templates/registration/login.html:8
#: templates/admin/base_site.html:65 templates/registration/login.html:8
msgid "Log in"
msgstr ""

View File

@ -26,7 +26,15 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% endblock %}
{% block userlinks %}
{# Link to our apps outside of admin #}
<a href="{% url "media:index" %}">{% trans 'Library' %}</a> /
<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 %}