<commit_before><div class="inline-group" style="margin: 5px 10px">
    <h3>{{ inline_admin_formset.opts.verbose_name_plural|title }}</h3>
    {{ inline_admin_formset.formset.management_form }}
    {{ inline_admin_formset.formset.non_form_errors }}

    <fieldset class="gallery-items-sortable" style="background: #fff; border: 1px solid #ddd; -moz-border-radius: 10px;">

    {% for inline_admin_form in inline_admin_formset %}
        <div class="inline-related {% if forloop.last %}last-related{% endif %}">
            {% if inline_admin_form.form.non_field_errors %}{{ inline_admin_form.form.non_field_errors }}{% endif %}

            {% for fieldset in inline_admin_form %}
                <div class="gallery-item" style="margin: 5px; padding: 5px; border: 1px solid #ddd;">
                <img src="{{ inline_admin_form.original.target.thumb_url }}" alt="{{ inline_admin_form.original.target }}" style="float: left; width: 60px; margin-right: 10px;"/>
                {% if inline_admin_form.original %}
                    <h4>
                        #{{ inline_admin_form.original.order }} &mdash; {{ inline_admin_form.original.target }}
                        {% if inline_admin_form.show_url %}
                            &nbsp;<a class="icn web" href="{% url newman_admin_index %}r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a>
                        {% endif %}
                    </h4>
                {% endif %}
                {% for line in fieldset %}
                    {{ line.errors }}
                    {% for field in line %}
                        {% if field.is_hidden %}
                            {{ field.field }}
                        {% else %}
                            {{ field.field }}
                        {% endif %}
                    {% endfor %}
                {% endfor %}
                {% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %}
                </div>
            {% endfor %}
            {{ inline_admin_form.pk_field.field }}
            {{ inline_admin_form.fk_field.field }}
        </div>
    {% endfor %}

    </fieldset>

    <a class="icn btn add add-gallery-item-button">{% trans "Add" %}</a>
</div>
<script type="text/javascript">request_media('{{ NEWMAN_MEDIA_URL }}jquery/jquery-ui.js');</script>
<script type="text/javascript">request_media('{{ NEWMAN_MEDIA_URL }}js/inlines.js');</script><commit_msg>Added clear:both to gallery items<commit_after><div class="inline-group" style="margin: 5px 10px">
    <h3>{{ inline_admin_formset.opts.verbose_name_plural|title }}</h3>
    {{ inline_admin_formset.formset.management_form }}
    {{ inline_admin_formset.formset.non_form_errors }}

    <fieldset class="gallery-items-sortable" style="background: #fff; border: 1px solid #ddd; -moz-border-radius: 10px;">

    {% for inline_admin_form in inline_admin_formset %}
        <div class="inline-related {% if forloop.last %}last-related{% endif %}">
            {% if inline_admin_form.form.non_field_errors %}{{ inline_admin_form.form.non_field_errors }}{% endif %}

            {% for fieldset in inline_admin_form %}
                <div class="gallery-item" style="margin: 5px; padding: 5px; border: 1px solid #ddd;">
                <img src="{{ inline_admin_form.original.target.thumb_url }}" alt="{{ inline_admin_form.original.target }}" style="float: left; width: 60px; margin-right: 10px;"/>
                {% if inline_admin_form.original %}
                    <h4>
                        #{{ inline_admin_form.original.order }} &mdash; {{ inline_admin_form.original.target }}
                        {% if inline_admin_form.show_url %}
                            &nbsp;<a class="icn web" href="{% url newman_admin_index %}r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a>
                        {% endif %}
                    </h4>
                {% endif %}
                {% for line in fieldset %}
                    {{ line.errors }}
                    {% for field in line %}
                        {% if field.is_hidden %}
                            {{ field.field }}
                        {% else %}
                            {{ field.field }}
                        {% endif %}
                    {% endfor %}
                {% endfor %}
                {% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %}
                </div>
            {% endfor %}
            {{ inline_admin_form.pk_field.field }}
            {{ inline_admin_form.fk_field.field }}
            <div class="cb"></div>
        </div>
    {% endfor %}

    </fieldset>

    <a class="icn btn add add-gallery-item-button">{% trans "Add" %}</a>
</div>
<script type="text/javascript">request_media('{{ NEWMAN_MEDIA_URL }}jquery/jquery-ui.js');</script>
<script type="text/javascript">request_media('{{ NEWMAN_MEDIA_URL }}js/inlines.js');</script>
{'fraction_non_alphanumeric': 0.14755337237861327, 'fraction_numerical': 0.006423578310976762, 'mean_word_length': 2.1141176470588237, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '3953272', 'n_tokens_mistral': 1688, 'n_tokens_neox': 1495, 'n_words': 275}