chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Resources/views/Admin/switcher_links.html.twig

Summary

Maintainability
Test Coverage
{% if chamilo_settings_get('language.show_language_selector_in_menu') == 'true' %}
{% autoescape false %}
<div class="btn-group" role="group">
    <button
        type="button"
        class="btn btn--plain dropdown-toggle"
        data-toggle="dropdown"
        aria-haspopup="true"
        aria-expanded="false"
    >
{#        <span class="flag-icon flag-icon-{{ current_locale_info.flag }}"></span>#}
        {{ current_locale }}
        <span class="caret">
        </span>
    </button>
    <div class="dropdown-menu" role="menu">
        {% for index, locale in available_locales %}
            <a class="dropdown-item" href="{{ app.request.attributes.get('_route') }}?_locale={{ index }}">
{#                <span class="flag-icon flag-icon-{{ index }}"></span>#}
                {{ locale }}
            </a>
        {% endfor %}
    </div>
</div>
{% endautoescape %}
{% endif %}