<commit_before>{% use '../CommonAdmin/ListTemplate/row.php.twig' %}
{% use '../CommonAdmin/ListTemplate/object_actions.php.twig' %}

{% block list_tbody %}
{{ echo_block("list_tbody") }}
    <tbody>
        {{ echo_if (builder.ModelClass ~ "s|length > 0") }}

        {{ echo_for(builder.ModelClass, builder.ModelClass ~ "s" ) }}
        <tr class="list_trow">
            {{- block('list_row') -}}

            {{- block('list_object_actions') }}
        </tr>
        {{ echo_endfor() }}

        {{ echo_else() }}
        <tr class="list_trow no_results_row">
            <td colspan="{{ (object_actions|length > 0) ? (display|length + 1) : display|length }}">{{ echo_trans('list.no_results') }}</td>
        </tr>
        {{ echo_endif () }}
    </tbody>
{{ echo_endblock() }}
{% endblock %}
<commit_msg>Fix colspan for no_results when no display defined<commit_after>{% use '../CommonAdmin/ListTemplate/row.php.twig' %}
{% use '../CommonAdmin/ListTemplate/object_actions.php.twig' %}

{% block list_tbody %}
{{ echo_block("list_tbody") }}
    <tbody>
        {{ echo_if (builder.ModelClass ~ "s|length > 0") }}

        {{ echo_for(builder.ModelClass, builder.ModelClass ~ "s" ) }}
        <tr class="list_trow">
            {{- block('list_row') -}}

            {{- block('list_object_actions') }}
        </tr>
        {{ echo_endfor() }}

        {{ echo_else() }}
        <tr class="list_trow no_results_row">
            <td colspan="{{ (object_actions|length > 0) ? (builder.columns|length + 1) : builder.columns|length }}">{{ echo_trans('list.no_results') }}</td>
        </tr>
        {{ echo_endif () }}
    </tbody>
{{ echo_endblock() }}
{% endblock %}

{'fraction_non_alphanumeric': 0.19892150988615936, 'fraction_numerical': 0.0035949670461354103, 'mean_word_length': 2.7111111111111112, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, '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': '6985105', 'n_tokens_mistral': 565, 'n_tokens_neox': 535, 'n_words': 87}