ernestophone.ens.fr/templates/partitions/liste.html

26 lines
812 B
HTML
Raw Normal View History

2015-03-17 19:03:51 +01:00
{% extends "base.html" %}
{% block titre %}Liste des partitions{% endblock %}
{% block content %}<h1>Liste des partitions</h1>
{% if suppression %}
2015-04-13 18:56:43 +02:00
<p>{{ suppression }}</p>
2015-03-17 19:03:51 +01:00
{% endif %}
2015-07-22 22:08:59 +02:00
{% if user.is_authenticated %}
2015-03-17 19:03:51 +01:00
<h3><a href="{% url "partitions.views.ajouter_morceau" %}">Ajouter un morceau</a></h3>
2015-07-22 22:08:59 +02:00
{% endif %}
<ul class="filelist">
2015-03-17 19:03:51 +01:00
{% for part in partitions %}
2015-07-22 22:08:59 +02:00
<li>
2015-03-17 19:03:51 +01:00
{% if not user.is_authenticated %}
2015-07-22 22:08:59 +02:00
{{ part.nom }} - {{ part.auteur }}
2015-03-17 19:03:51 +01:00
{% endif %}
{% if user.is_authenticated %}
2015-07-22 22:08:59 +02:00
<a href="{% url "partitions.views.listepart" part.nom part.auteur %}" class="fichier">{{ part.nom }} - {{ part.auteur }}</a>
2015-03-17 19:03:51 +01:00
{% endif %}
{% if user.profile.is_chef %}
2015-07-22 22:08:59 +02:00
<a href="{% url "partitions.views.conf_delete_morc" part.nom part.auteur %}" class="supprimer">Supprimer</a>
2015-03-17 19:03:51 +01:00
{% endif %}
2015-07-22 22:08:59 +02:00
</li>
2015-03-17 19:03:51 +01:00
{% endfor %}
2015-07-22 22:08:59 +02:00
</ul>
2015-03-17 19:03:51 +01:00
{% endblock %}