<commit_before>{% extends '::base.html.twig' %}
{% block body %}
    <ol class="breadcrumb">
        <li class="active">{{ 'elections'|trans|capitalize }}</li>
    </ol>

    <div class="panel panel-primary">
        <div class="panel-heading">{{ 'listElections.open_elections'|trans }}

        {% if is_granted('ROLE_ADMIN') %}
            <a type="button" class="btn btn-success btn-sm pull-right" href="{{ path('votolab_admin') }}">
                <span class="glyphicon glyphicon-plus"></span> {{ 'admin_panel'|trans|capitalize }}
            </a>
        {% endif %}
        </div>
        <div class="panel-body">
            <div class="elections">
                {% for election in elections %}
                    <div class="well well-sm">
                        <h3><a href="{{ path('votolab_election', {'slug': election.slug}) }}">{{ election.title }}</a>
                        </h3>

                        <p>{{ election.description }}</p>
                    </div>
                {% endfor %}
            </div>
        </div>
    </div>
    <div class="panel panel-danger">
        <div class="panel-heading">{{ 'listElections.past_elections'|trans }}</div>
        <div class="panel-body">
            <div class="elections">
                {% for election in electionsPast %}
                    <div class="well well-sm">
                        <h3><a href="{{ path('votolab_tally', {'slug': election.slug}) }}">{{ election.title }}</a></h3><commit_msg>Election date added to list of elections<commit_after>{% extends '::base.html.twig' %}
{% block body %}
    <ol class="breadcrumb">
        <li class="active">{{ 'elections'|trans|capitalize }}</li>
    </ol>

    <div class="panel panel-primary">
        <div class="panel-heading">{{ 'listElections.open_elections'|trans }}

        {% if is_granted('ROLE_ADMIN') %}
            <a type="button" class="btn btn-success btn-sm pull-right" href="{{ path('votolab_admin') }}">
                <span class="glyphicon glyphicon-plus"></span> {{ 'admin_panel'|trans|capitalize }}
            </a>
        {% endif %}
        </div>
        <div class="panel-body">
            <div class="elections">
                {% for election in elections %}
                    <div class="well well-sm">
                        <h3>
                            <a href="{{ path('votolab_election', {'slug': election.slug}) }}">{{ election.title }}</a>
                            <span class="label label-danger pull-right">{{ election.dateStart|date("d/m/Y") }}</span>
                        </h3>

                        <p>{{ election.description }}</p>
                    </div>
                {% endfor %}
            </div>
        </div>
    </div>
    <div class="panel panel-danger">
        <div class="panel-heading">{{ 'listElections.past_elections'|trans }}</div>
        <div class="panel-body">
            <div class="elections">
                {% for election in electionsPast %}
                    <div class="well well-sm">
                        <h3>
                            <a href="{{ path('votolab_tally', {'slug': election.slug}) }}">{{ election.title }}</a>
                            <span class="label label-danger pull-right">{{ election.dateStart|date("d/m/Y") }}</span>
                        </h3>
{'fraction_non_alphanumeric': 0.1793478260869565, 'fraction_numerical': 0.0024154589371980675, 'mean_word_length': 1.7562396006655574, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '140599', 'n_tokens_mistral': 1003, 'n_tokens_neox': 935, 'n_words': 194}