Visualisation des pdf en ligne
This commit is contained in:
parent
2140fcc7ee
commit
c0af60eedb
4 changed files with 25 additions and 5 deletions
|
@ -7,7 +7,11 @@
|
|||
<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.is_authenticated and ".pdf" 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>
|
||||
{% if user.profile.is_chef %}
|
||||
<p><a href="{% url "partitions.views.conf_delete" nom auteur p.pk %}">Supprimer</a> </p>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue