Merge branch 'master' into demo

This commit is contained in:
Martin Pépin 2016-06-27 02:19:51 +02:00
commit 35fedbd8ef
10 changed files with 37 additions and 44 deletions

View file

@ -1,5 +1,4 @@
{% load static %}
{% load urls_extra %}
<!DOCTYPE html>
<html lang="fr">

View file

@ -1,5 +1,4 @@
{% extends "base.html" %}
{% load urls_extra %}
{% block titre %}{{ p }}{% endblock %}
@ -30,15 +29,15 @@
<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>
<li><a href="{% url "partitions.views.see" nom auteur p.id %}" 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>
<li><a href="{% url "partitions.views.see" nom auteur p.id %}" 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>
<a href="{% url "partitions.views.download" nom auteur p.id %}" class="telecharger">Télécharger</a>
{% endif %}
{% if user.profile.is_chef %}