<commit_before>{% extends "ProjectAppBundle::layout.html.twig" %}

{% block content %}
    <div class="panel-group">
        {% if entities is empty %}
            <div class="panel-item">
                <div class="panel-content">
                    Aucune archive n'est actuellement disponible.
                </div>
            </div>
        {% else %}
            {% for entity in entities %}
                <div class="panel-item">
                    <div class="panel-content">
                        <div class="panel-header">
                            <h3 class="pull-left">{{ entity.archive.year | date('Y') }} - {{ entity.archive.name }}</h3>
                        </div>
                        <div class="panel-content">
                            {% if entity.promotions is not empty %}
                                Promotion(s) inclue(s) :
                                <br/><br/>
                                <table>
                                    <thead>
                                        <tr>
                                            <th>Dates</th>
                                            <th>Formation</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {% for promotion in entity.promotions %}
                                            <tr>
                                                <td>{{ promotion.startDate | date('Y') }} - {{ promotion.endDate | date('Y') }}</td>
                                                <td>{{ promotion.formation.name }}</td>
                                            </tr>
                                        {% endfor %}
                                    </tbody>
                                </table>
                                <br/>
                            {% endif %}

                            <a class="btn btn-second" href="">Télécharger</a>
                        </div>
                    </div>
                </div>
            {% endfor %}
        {% endif %}
    </div>
{% endblock %}<commit_msg>Add link to new entity<commit_after>{% extends "ProjectAppBundle::layout.html.twig" %}

{% block content %}
    <div class="bloc-top">
        <a class="btn btn-second" href="{{ path('archive_new') }}">Nouvelle archive</a>
    </div>

    <div class="panel-group">
        {% if entities is empty %}
            <div class="panel-item">
                <div class="panel-content">
                    Aucune archive n'est actuellement disponible.
                </div>
            </div>
        {% else %}
            {% for entity in entities %}
                <div class="panel-item">
                    <div class="panel-content">
                        <div class="panel-header">
                            <h3 class="pull-left">{{ entity.archive.year | date('Y') }} - {{ entity.archive.name }}</h3>
                        </div>
                        <div class="panel-content">
                            {% if entity.promotions is not empty %}
                                Promotion(s) inclue(s) :
                                <br/><br/>
                                <table>
                                    <thead>
                                        <tr>
                                            <th>Dates</th>
                                            <th>Formation</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {% for promotion in entity.promotions %}
                                            <tr>
                                                <td>{{ promotion.startDate | date('Y') }} - {{ promotion.endDate | date('Y') }}</td>
                                                <td>{{ promotion.formation.name }}</td>
                                            </tr>
                                        {% endfor %}
                                    </tbody>
                                </table>
                                <br/>
                            {% endif %}

                            <a class="btn btn-second btn-small" href="">Télécharger</a>
                        </div>
                    </div>
                </div>
            {% endfor %}
        {% endif %}
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.11827956989247312, 'fraction_numerical': 0.0008960573476702509, 'mean_word_length': 0.6722846441947565, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6344576', 'n_tokens_mistral': 995, 'n_tokens_neox': 891, 'n_words': 193}