<commit_before>{% macro editable_record_list(contenttype, subcontenttype, multiplecontent, extra_classes) %}
{% set lastgroup = "----" %}

<table class='{{ extra_classes }} dashboardlisting' data-contenttype="{{ subcontenttype.slug }}" data-token="{{ token() }}">

    {% set any_deletable = false %}
    {% set any_editable = false %}
    {% for content in multiplecontent %}
        {% set editable = isallowed('edit', content) %}
        {% if editable %}
            {% set any_editable = true %}
        {% endif %}
        {% set deletable = isallowed('delete', content) %}
        {% if deletable %}
            {% set any_deletable = true %}
        {% endif %}
        {% include ['custom/listing/' ~ contenttype.slug ~ '.twig', '_sub/_listing.twig'] with {'excerptlength': 380, 'thumbsize': 80, 'compact': false} %}
        {% if content.group.name is defined and (loop.first or content.group.name != lastgroup) %}
            {% set lastgroup = content.group.name %}
        {% endif %}

    {% else %}
        {{ __('contenttypes.generic.none-available', {'%contenttypes%': subcontenttype.slug}) }}
    {% endfor %}
</table>

{% if any_deletable %}
    <div class="btn-group">
        <a href="#" class="btn btn-default deletechosen showifchosen" style="display:none;">
            <i class="fa fa-trash"></i>
            {{ __('Delete selected', {'%contenttype%': contenttype.name}) }}
        </a>
    </div>
{% endif %}

{# -- commented out for now.. Finish when needed.
{% if any_editable %}
    <div class="btn-group">
        <a href="#" class="btn btn-default publishchosen showifchosen" style="display:none;">
            <i class="fa fa-circle status-published"></i>
            {{ __('Publish selected', {'%contenttype%': contenttype.name}) }}
        </a>
    </div>
    <div class="btn-group">
        <a href="#" class="btn btn-default unpublishchosen showifchosen" style="display:none;">
            <i class="fa fa-circle status-held"></i>
            {{ __('Depublish selected', {'%contenttype%': contenttype.name}) }}
        </a>
    </div>
{% endif %}
#}

{% from '_macro/_pager.twig' import pager %}
{{ pager(contenttype.slug) }}

{% endmacro %}
<commit_msg>Remove parameter that isn't used in translation anyway<commit_after>{% macro editable_record_list(contenttype, subcontenttype, multiplecontent, extra_classes) %}
{% set lastgroup = "----" %}

<table class='{{ extra_classes }} dashboardlisting' data-contenttype="{{ subcontenttype.slug }}" data-token="{{ token() }}">

    {% set any_deletable = false %}
    {% set any_editable = false %}
    {% for content in multiplecontent %}
        {% set editable = isallowed('edit', content) %}
        {% if editable %}
            {% set any_editable = true %}
        {% endif %}
        {% set deletable = isallowed('delete', content) %}
        {% if deletable %}
            {% set any_deletable = true %}
        {% endif %}
        {% include ['custom/listing/' ~ contenttype.slug ~ '.twig', '_sub/_listing.twig'] with {'excerptlength': 380, 'thumbsize': 80, 'compact': false} %}
        {% if content.group.name is defined and (loop.first or content.group.name != lastgroup) %}
            {% set lastgroup = content.group.name %}
        {% endif %}

    {% else %}
        {{ __('contenttypes.generic.none-available', {'%contenttypes%': subcontenttype.slug}) }}
    {% endfor %}
</table>

{% if any_deletable %}
    <div class="btn-group">
        <a href="#" class="btn btn-default deletechosen showifchosen" style="display:none;">
            <i class="fa fa-trash"></i>
            {{ __('Delete selected') }}
        </a>
    </div>
{% endif %}

{# -- commented out for now.. Finish when needed.
{% if any_editable %}
    <div class="btn-group">
        <a href="#" class="btn btn-default publishchosen showifchosen" style="display:none;">
            <i class="fa fa-circle status-published"></i>
            {{ __('Publish selected') }}
        </a>
    </div>
    <div class="btn-group">
        <a href="#" class="btn btn-default unpublishchosen showifchosen" style="display:none;">
            <i class="fa fa-circle status-held"></i>
            {{ __('Depublish selected') }}
        </a>
    </div>
{% endif %}
#}

{% from '_macro/_pager.twig' import pager %}
{{ pager(contenttype.slug) }}

{% endmacro %}

{'fraction_non_alphanumeric': 0.18190255220417634, 'fraction_numerical': 0.002320185614849188, 'mean_word_length': 2.7716535433070866, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '6122937', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1283, 'n_words': 305}