48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
{% load urls_extra %}
|
|
|
|
{% block titre %}{{ p }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>{{ p }}</h1>
|
|
|
|
{% if suppression %}
|
|
<p>{{ suppression }}</p>
|
|
{% endif %}
|
|
|
|
<div id="category-change">
|
|
<h4>Changer de catégorie ?</h4>
|
|
<ul class="hbuttonlist">
|
|
<li><a href="{% url "partitions.views.change_category" nom auteur "active" %}">Actuel</a></li>
|
|
<li><a href="{% url "partitions.views.change_category" nom auteur "incoming" %}">À venir</a></li>
|
|
<li><a href="{% url "partitions.views.change_category" nom auteur "old" %} ">Archives</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<ul class="filelist">
|
|
{% for p in part %}
|
|
{% if user.is_authenticated and ".pdf" in p.part.url %}
|
|
<li><a href="{% url "partitions.views.see" nom auteur p.part.url|cuturl %}" class="fichier">{{ p.nom }}</a>
|
|
{% elif user.is_authenticated and ".mp3" in p.part.url %}
|
|
<li><a href="{% url "partitions.views.see" nom auteur p.part.url|cuturl %}" class="fichier">{{ p.nom }}</a>
|
|
{% else %}
|
|
<li>{{ p.nom }}
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
|
<a href="{% url "partitions.views.download" nom auteur p.part.url|cuturl %}" class="telecharger">Télécharger</a>
|
|
{% endif %}
|
|
|
|
{% if user.profile.is_chef %}
|
|
<a href="{% url "partitions.views.conf_delete" nom auteur p.pk %}" class="supprimer">Supprimer</a>
|
|
{% endif %}
|
|
|
|
</li>
|
|
{% empty %}
|
|
<p> Pas de partitions pour le moment </p>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<p><a href="{% url "partitions.views.upload" p.nom p.auteur %}">Ajouter un média</a></p>
|
|
{% endblock %}
|