<commit_before>{##
 # Sidebar-Panel: Displays actions for contenttype
 #}
{% extends '_base/_panel.twig' %}

{% block panel_class 'panel-news' %}

{% block panel_icon 'fa-cog' %}

{% block panel_head __('Actions for %contenttypes%', {'%contenttypes%': context.contenttype.name}) %}

{% block panel_body %}
    <a class="btn btn-primary" href="{{ path('editcontent', {'contenttypeslug': context.contenttype.slug, 'id': ''}) }}">
        <i class="fa fa-plus"></i> {{ __('New %contenttype%', {'%contenttype%': context.contenttype.singular_name}) }}
    </a>

    <form class="form-inline" style="margin-top:15px;">
        <input type="text" class="form-control" value="{{ request('filter', '', true) }}" name="filter" style="width: 110px;" placeholder="{{ __('Filtering…') }}">
        <button type="submit" class="btn btn-tertiary">{{ __('Filter') }}</button>
    </form>

    {% if request('filter') or request('order') %}
        <a class="btn btn-tertiary" href="?" style="margin-top: 15px">{{ __('Clear sort/filter') }}</a>
    {% endif %}

    <div class="description">
        {{ context.contenttype.description|markdown }}
    </div>

    <p><strong>{{ __("Details") }}</strong></p>
    <ul>
        <li>{{ __("Default status") }}: {{ context.contenttype.default_status|default('published') }}</li>
        <li>{{ __("Listing template") }}: <code>{{ context.contenttype.listing_template|default( app.config.get('general/listing_template') ) }}</code></li>
        <li>{{ __("Detail template") }}: <code>{{ context.contenttype.record_template|default( app.config.get('general/record_template') ) }}</code></li>
        {% if context.contenttype.taxonomy is iterable %}
            <li>{{ __("Taxonomy") }}: {{ context.contenttype.taxonomy|join(', ') }}</li>
        {% endif %}
        {% if context.contenttype.relations is iterable %}
            <li>
                {{ __("Relationships") }}: 
                {% for rel, data in context.contenttype.relations %}
                    {{ rel }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </li>
        {% endif %}
    </ul>

{% endblock panel_body %}
<commit_msg>Add a missing default() for context.contenttype.description<commit_after>{##
 # Sidebar-Panel: Displays actions for contenttype
 #}
{% extends '_base/_panel.twig' %}

{% block panel_class 'panel-news' %}

{% block panel_icon 'fa-cog' %}

{% block panel_head __('Actions for %contenttypes%', {'%contenttypes%': context.contenttype.name}) %}

{% block panel_body %}
    <a class="btn btn-primary" href="{{ path('editcontent', {'contenttypeslug': context.contenttype.slug, 'id': ''}) }}">
        <i class="fa fa-plus"></i> {{ __('New %contenttype%', {'%contenttype%': context.contenttype.singular_name}) }}
    </a>

    <form class="form-inline" style="margin-top:15px;">
        <input type="text" class="form-control" value="{{ request('filter', '', true) }}" name="filter" style="width: 110px;" placeholder="{{ __('Filtering…') }}">
        <button type="submit" class="btn btn-tertiary">{{ __('Filter') }}</button>
    </form>

    {% if request('filter') or request('order') %}
        <a class="btn btn-tertiary" href="?" style="margin-top: 15px">{{ __('Clear sort/filter') }}</a>
    {% endif %}

    <div class="description">
        {{ context.contenttype.description|default('')|markdown }}
    </div>

    <p><strong>{{ __("Details") }}</strong></p>
    <ul>
        <li>{{ __("Default status") }}: {{ context.contenttype.default_status|default('published') }}</li>
        <li>{{ __("Listing template") }}: <code>{{ context.contenttype.listing_template|default( app.config.get('general/listing_template') ) }}</code></li>
        <li>{{ __("Detail template") }}: <code>{{ context.contenttype.record_template|default( app.config.get('general/record_template') ) }}</code></li>
        {% if context.contenttype.taxonomy is iterable %}
            <li>{{ __("Taxonomy") }}: {{ context.contenttype.taxonomy|join(', ') }}</li>
        {% endif %}
        {% if context.contenttype.relations is iterable %}
            <li>
                {{ __("Relationships") }}:
                {% for rel, data in context.contenttype.relations %}
                    {{ rel }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </li>
        {% endif %}
    </ul>

{% endblock panel_body %}

{'fraction_non_alphanumeric': 0.21466208476517754, 'fraction_numerical': 0.0032073310423825887, 'mean_word_length': 3.318496538081108, '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': '5894844', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1305, 'n_words': 269}