{% extends "gestion/base.html" %} {% load static %} {% load i18n %} {% load autotranslate %} {% load halflength %} {% block titre %}{% trans "L'Ernestophone : répertoire" %}{% endblock %} {% block content %}
{% if photo %}
{% if photo.url %} {% if photo.auteur %}{{photo.auteur}}{%endif%} {% elif photo.auteur %} {% endif %}
{% else %}
{% endif %}
{% if user.profile.is_chef %} {% trans "Ajouter un morceau" %}   {% trans "Télécharger tous les musecores actifs" %} {% elif user.is_authenticated %} {% trans "Télécharger tous les musecores actifs" %} {% endif %}

{% for o in some_list %} ... {% endfor %} {% for category in categories %} {%if not forloop.first %}
{% endif %}

{% autotranslate current_language category.name category.nom_en %} :

{% with rep=category.partitionset_set.all %} {% with rep_half_length=rep|half_length %} {% for partition in rep %} {% if not user.is_authenticated %} {% else %} {% if user.profile.is_chef %} {% endif %} {% endif %} {% if forloop.counter == rep_half_length %}
{% trans "Morceau" %} {% trans "Compositeur" %}
{{ partition.nom }} {{ partition.auteur }}
{{ partition.nom }} {{ partition.auteur }} {% trans "Supprimer" %}
{% endif %} {% endfor %} {% endwith %} {% endwith %}
{% trans "Morceau" %} {% trans "Compositeur" %}
{% endfor %}
{% endblock %}