{% if modifications|length == 0 %}
    <em>Aucune activité dans la période choisie</em>
{% else %}
<div class="large-table">
    <table role="grid">
        <thead>
            <tr>
                <th>{% if modifications.0.when.0 == modifications.0.when.1 %}Date{% else %}Semaine{% endif %}</th>
                <th>Modérations</th>
                <th>Copies locales</th>
                <th>Créations manuelles</th>
                <th>Imports manuels</th>
                <th>Imports automatiques</th>
            </tr>
        </thead>
        <tbody>
            {% for m in modifications %}
            <tr>
                <td>{{ m.when.0|date:'D j b' }}{% if modifications.0.when.0 != modifications.0.when.1 %} - {{ m.when.1|date:'D j b' }}{% endif %}</td>
                <td>{% if forloop.first %}<a href="{% url 'recent' %}?o=moderated_date">{% endif %}{{ m.nb_moderated }}{% if forloop.first %}</a>{% endif %}</td>
                <td>{{ m.nb_local_copies }}</td>
                <td>{{ m.nb_manual_creation }}</td>
                <td>{% if forloop.first %}<a href="{% url 'recent' %}?in_recurrent_import=False&o=imported_date">{% endif %}{{ m.nb_manual_import }}{% if forloop.first %}</a>{% endif %}</td>
                <td>{% if forloop.first %}<a href="{% url 'recent' %}?in_recurrent_import=True&o=imported_date">{% endif %}{{ m.nb_first_import }}{% if forloop.first %}</a>{% endif %}</td>
            </tr>
            {% endfor %}
            {% if next %}
            <tr>
                <td><a href="{% url 'activite' %}">...</a></td>
                <td><a href="{% url 'activite' %}">...</a></td>
                <td><a href="{% url 'activite' %}">...</a></td>
                <td><a href="{% url 'activite' %}">...</a></td>
                <td><a href="{% url 'activite' %}">...</a></td>
            </tr>
        {% endif %}
        </tbody>
    </table>
</div>
{% endif %}