Distinction page document public/privé
This commit is contained in:
parent
c376aea787
commit
0a140eca15
4 changed files with 20 additions and 10 deletions
|
|
@ -3,7 +3,7 @@
|
|||
{% block page_title %} - Media{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="mb-5">Enregistrements, photos et vidéos de la chorale</h2>
|
||||
<h2 class="mb-5">{{ title }}</h2>
|
||||
|
||||
{% for item in object_list %}
|
||||
<div class="border-bottom border-danger mt-3{% if item.prive %} prive{% endif %}">
|
||||
|
|
@ -20,4 +20,8 @@
|
|||
{% empty %}
|
||||
<p><i>Aucun document disponible pour le moment</i></p>
|
||||
{% endfor %}
|
||||
|
||||
{% if perms.beesgospel.change_document %}
|
||||
<p class="text-danger"><a href="{% url 'admin:beesgospel_document_changelist' %}">Gestion des documents</a></p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue