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

{% block main %}

    <h1>Add to the Gallery</h1>

    {% if app.session.flashbag.has('gallery_thanks') %}

        {% for flashMessage in app.session.flashbag.get('gallery_thanks') %}
            <div class="alert alert-dismissable alert-success">
                <button type="button" class="close" data-dismiss="alert">×</button>
                <p>{{ flashMessage }}</p>
            </div>
        {% endfor %}

    {% else %}

        <p>Enter your information about your Mini or a Mini that you have spotted out and about and it will be uploaded to
            the website and
            viewable by others in the gallery (pending approval). As it is a Mini-based site, please only upload images of
            Minis.</p>

        <div class="row">
            <div class="col-lg-6">
                <form action="{{ path("ayrshireminis_gallery_submit") }}" {{ form_enctype(form) }} method="post" class="form-horizontal">
                    <fieldset>
                        {{ form_widget(form) }}
                        <br/>

                        <p>
                            <button type="submit" class="btn btn-primary">Add</button>
                        </p>
                    </fieldset>
                </form>
            </div>

            <div class="col-lg-4 col-lg-offset-1">

                <img src="http://i26.photobucket.com/albums/c103/crmpicco/T925%20ARO/DSCF0323.jpg" width="400" height="300"/>

            </div>
        </div>

    {% endif %}

{% endblock %}<commit_msg>Adding a message to the gallery submission page to tell the user that images are moderated<commit_after>{% extends "::base.html.twig" %}

{% block main %}

    <div class="hidden" id="page_heading" data-page-heading="gallery"></div>

    <h2>Add to the Gallery</h2>

    {% if app.session.flashbag.has('gallery_thanks') %}

        {% for flashMessage in app.session.flashbag.get('gallery_thanks') %}
            <div class="alert alert-dismissable alert-success">
                <button type="button" class="close" data-dismiss="alert">×</button>
                <p>{{ flashMessage }}</p>
            </div>
        {% endfor %}

        <p>
            All images submitted to the gallery are approved by the moderator before they are shown live on the website.
        </p>
        <p>
            The moderator has been emailed to alert them that a new image has been submitted and will review the submission shortly.
        </p>

    {% else %}

        <p>Enter your information about your Mini or a Mini that you have spotted out and about and it will be uploaded
            to
            the website and
            viewable by others in the gallery (pending approval). As it is a Mini-based site, please only upload images
            of
            Minis.</p>

        <div class="row">
            <div class="col-lg-6">
                <form action="{{ path("ayrshireminis_gallery_submit") }}" {{ form_enctype(form) }} method="post"
                      class="form-horizontal">
                    <fieldset>
                        {{ form_widget(form) }}
                        <br/>

                        <p>
                            <button type="submit" class="btn btn-primary">Add</button>
                        </p>
                    </fieldset>
                </form>
            </div>

            <div class="col-lg-4 col-lg-offset-1">

                <img src="http://i26.photobucket.com/albums/c103/crmpicco/T925%20ARO/DSCF0323.jpg" width="400"
                     height="300"/>

            </div>
        </div>

    {% endif %}

{% endblock %}
{'fraction_non_alphanumeric': 0.12852064533770852, 'fraction_numerical': 0.013672409078479627, 'mean_word_length': 1.6354466858789625, 'pattern_counts': {'":': 2, '<': 61, '<?xml version=': 0, '>': 61, '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': '982873', 'n_tokens_mistral': 1098, 'n_tokens_neox': 968, 'n_words': 277}