Mp3 en ligne

This commit is contained in:
R1kM 2015-03-29 23:26:03 +02:00
parent da7d41965f
commit 04bdb4d2e3
2 changed files with 10 additions and 1 deletions

View file

@ -9,6 +9,8 @@
{% for p in part %}
{% if user.is_authenticated and ".pdf" in p.part.url %}
<p><a href="{% url "partitions.views.see" nom auteur p.part.url|cuturl %}">{{ p.nom }}</a>
{% elif user.is_authenticated and ".mp3" in p.part.url %}
<p><a href="{% url "partitions.views.see" nom auteur p.part.url|cuturl %}">{{ p.nom }}</a>
{% else %}<p>{{ p.nom }}
{% endif %}
{% if user.is_authenticated %}<a href="{% url "partitions.views.download" nom auteur p.part.url|cuturl %}">Télécharger</a>{% endif %} </p>