Mp3 en ligne
This commit is contained in:
parent
da7d41965f
commit
04bdb4d2e3
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue