<commit_before>{#

This file is part of the Networking package.

(c) net working AG <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'NetworkingInitCmsBundle:CRUD:list.html.twig' %}
{% set active_tab = app.request.get('context') %}
{% block preview %}
{% endblock %}

{% block actions %}
{% endblock %}

{% block list_table %}
    {% if not  app.request.isxmlhttprequest %}
        <div id="objectList">
    {% endif %}
    {# start of tabs navigation#}
    {# filters #}

    {# end of tabs navigation#}
    <div class="tab-content">
        {% for name, context in media_pool.contexts %}
            {% if attribute(datagrid, name) is defined %}
                <div class="tab-pane {% if (active_tab is null and loop.first) or active_tab == name %}active{% endif %}"
                     id="media_{{ name }}">
                    <div class="row">
                        <div class="span10">

                            {# provider #}
                            {% if persistent_paramerters.provider is defined %}
                                {% set providers = media_pool.getProviderNamesByContext(name) %}
                                <ul class="nav nav-pills">
                                    {% if providers|length > 1 %}
                                        <li><a><strong>{{ "label.select_provider"|trans({}, 'MediaAdmin') }}</strong></a>
                                        </li>

                                        {% if not persistent_parameters.provider %}
                                            <li class="active"><a
                                                        href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': null, 'active_tab' : name}) }}">{{ "link.all_providers"|trans({}, 'MediaAdmin') }}</a>
                                            </li>
                                        {% else %}
                                            <li>
                                                <a href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': null, 'active_tab' : name}) }}">{{ "link.all_providers"|trans({}, 'MediaAdmin') }}</a>
                                            </li>
                                        {% endif %}

                                        {% for provider_name in providers %}
                                            {% if persistent_parameters.provider == provider_name %}
                                                <li class="active"><a
                                                            href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': provider_name, 'active_tab' : name}) }}">{{ provider_name|trans({}) }}</a>
                                                </li>
                                            {% else %}
                                                <li>
                                                    <a href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': provider_name, 'active_tab' : name}) }}">{{ provider_name|trans({}) }}</a>
                                                </li>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                </ul>
                            {% endif %}

                                {# create button #}
                            {% if galleryListMode is defined and not galleryListMode %}
                                <h1><span class="info-soft">{{ name|trans({}) }}</span>
                                    <a class="btn btn-primary btn-small menu-dialog-link"
                                       href="{{ admin.generateUrl('create', {'context' : name, 'provider' : null}) }}">
                                        <i class="icon-plus icon-white"></i> {{ 'button.create.menu_item'|trans({}, 'MenuItemAdmin') }}
                                    </a>
                                </h1>
                            {% endif %}

                            {% set batchactions = admin.batchactions %}
                            {% set filterParameters = admin.filterParameters|merge({'context': name}) %}<commit_msg>change create button to default<commit_after>{#

This file is part of the Networking package.

(c) net working AG <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'NetworkingInitCmsBundle:CRUD:list.html.twig' %}
{% set active_tab = app.request.get('context') %}
{% block preview %}
{% endblock %}

{% block actions %}
{% endblock %}

{% block list_table %}
    {% if not  app.request.isxmlhttprequest %}
        <div id="objectList">
    {% endif %}
    {# start of tabs navigation#}
    {# filters #}

    {# end of tabs navigation#}
    <div class="tab-content">
        {% for name, context in media_pool.contexts %}
            {% if attribute(datagrid, name) is defined %}
                <div class="tab-pane {% if (active_tab is null and loop.first) or active_tab == name %}active{% endif %}"
                     id="media_{{ name }}">
                    <div class="row">
                        <div class="span10">

                            {# provider #}
                            {% if persistent_paramerters.provider is defined %}
                                {% set providers = media_pool.getProviderNamesByContext(name) %}
                                <ul class="nav nav-pills">
                                    {% if providers|length > 1 %}
                                        <li><a><strong>{{ "label.select_provider"|trans({}, 'MediaAdmin') }}</strong></a>
                                        </li>

                                        {% if not persistent_parameters.provider %}
                                            <li class="active"><a
                                                        href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': null, 'active_tab' : name}) }}">{{ "link.all_providers"|trans({}, 'MediaAdmin') }}</a>
                                            </li>
                                        {% else %}
                                            <li>
                                                <a href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': null, 'active_tab' : name}) }}">{{ "link.all_providers"|trans({}, 'MediaAdmin') }}</a>
                                            </li>
                                        {% endif %}

                                        {% for provider_name in providers %}
                                            {% if persistent_parameters.provider == provider_name %}
                                                <li class="active"><a
                                                            href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': provider_name, 'active_tab' : name}) }}">{{ provider_name|trans({}) }}</a>
                                                </li>
                                            {% else %}
                                                <li>
                                                    <a href="{{ admin.generateUrl('list', {'context': persistent_parameters.context, 'provider': provider_name, 'active_tab' : name}) }}">{{ provider_name|trans({}) }}</a>
                                                </li>
                                            {% endif %}
                                        {% endfor %}
                                    {% endif %}
                                </ul>
                            {% endif %}

                                {# create button #}
                            {% if galleryListMode is defined and not galleryListMode %}
                                <h1><span class="info-soft">{{ name|trans({}) }}</span>
                                        {% include 'NetworkingInitCmsBundle:Core:create_button.html.twig' %}
                                </h1>
                            {% endif %}

                            {% set batchactions = admin.batchactions %}
                            {% set filterParameters = admin.filterParameters|merge({'context': name}) %}
{'fraction_non_alphanumeric': 0.12570224719101122, 'fraction_numerical': 0.0011704119850187266, 'mean_word_length': 1.0816077953714982, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 105, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3819814', 'n_tokens_mistral': 1904, 'n_tokens_neox': 1712, 'n_words': 433}