<commit_before>{% extends 'base.html.twig' %}

{% block title %}{{ parent() }}Accueil{% endblock %}

{% block body %}

    <div class="containe-fluid">
        <div class="row">
            <div class="col-md-4" id="request">

                <h2>Invitations reçus ({{ invitations|length }})</h2>

                {% for invitation in invitations %}
                    <div class="invitation">
                        {{ invitation.room.name }}
                        <button type="button" class="btn btn-success btn-sm">Accepter</button>
                        <button type="button" class="btn btn-danger btn-sm">Refuser</button>
                    </div>
                {% endfor %}
            </div>

            <div class="col-md-8" id="list">

                <h2>Liste des Rooms ({{ rooms|length }})</h2>
                {% if not app.user %}
                    <h3>Connectez-vous ou inscrivez-vous pour commencer à créer des rooms !</h3>
                {% endif %}
                {% for room in rooms %}
                    <div class="col-md-4 room">
                        <img src="{{ asset('public/image/verre.jpg') }}">
                        <hr>
                        {{ room.name }}<br>
                        {{ room.dateStart|date("Y") }}<br>
                        {{ room.description }}<br>

                        <button type="button" class="btn btn-primary btn-sm">
                            <a href="{{ path("room_view", { "slug" : room.slug }) }}">
                                <span class="glyphicon glyphicon-share-alt"></span>
                            </a>
                        </button>
                    </div>
                {% endfor %}
            </div>
        </div>
    </div>

{% endblock %}<commit_msg>Edit And Create Link<commit_after>{% extends 'base.html.twig' %}

{% block title %}{{ parent() }}Accueil{% endblock %}

{% block body %}

    <div class="containe-fluid">
        <div class="row">
            <div class="col-md-4" id="request">

                <h2>Invitations reçus ({{ invitations|length }})</h2>

                {% for invitation in invitations %}
                    <div class="invitation">
                        {{ invitation.room.name }}
                        <button type="button" class="btn btn-success btn-sm">Accepter</button>
                        <button type="button" class="btn btn-danger btn-sm">Refuser</button>
                    </div>
                {% endfor %}
            </div>

            <div class="col-md-8" id="list">

                <h2>
                    <a href="{{ path('room_add') }}">+</a>
                    Liste des Rooms ({{ rooms|length }})
                </h2>
                {% if not app.user %}
                    <h3>Connectez-vous ou inscrivez-vous pour commencer à créer des rooms !</h3>
                {% endif %}
                {% for room in rooms %}
                    <div class="col-md-4 room">
                        <img src="{{ asset('public/image/verre.jpg') }}">
                        <hr>
                        {{ room.name }}<br>
                        {{ room.dateStart|date("Y") }}<br>
                        {{ room.description }}<br>

                        <a href="{{ path("room_edit", { "slug" : room.slug }) }}">
                            EDIT
                        </a>

                        <a href="{{ path("room_view", { "slug" : room.slug }) }}">
                            ENTER
                        </a>
                    </div>
                {% endfor %}
            </div>
        </div>
    </div>

{% endblock %}
{'fraction_non_alphanumeric': 0.15543898398674766, 'fraction_numerical': 0.004969630038652678, 'mean_word_length': 1.1224370240187462, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '7387127', 'n_tokens_mistral': 1048, 'n_tokens_neox': 940, 'n_words': 209}