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

19 lines
701 B
HTML
Raw Normal View History

2015-03-17 19:03:51 +01:00
{% extends "base.html" %}
{% load urls_extra %}
{% block titre %}{{ nom }}-{{ auteur }}{% endblock %}
{% block content %}
<h1>{{ p.nom }} - {{ p.auteur }}</h1>
{% if suppression %}
<p>{{ suppression }}</p>
{% endif %}
{% for p in part %}
<p>{{ p.nom }} {% if user.is_authenticated %}<a href="{% url "partitions.views.download" nom auteur p.part.url|cuturl %}">Télécharger</a>{% endif %} </p>
{% if user.profile.is_chef %}
<p><a href="{% url "partitions.views.conf_delete" nom auteur p.pk %}">Supprimer</a> </p>
{% endif %}
{% empty %}
<p> Pas de partitions pour le moment </p>
{% endfor %}
<p><a href="{% url "partitions.views.upload" p.nom p.auteur %}">Ajouter une partition</a></p>
{% endblock %}