chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Resources/views/Course/settings_menu.html.twig

Summary

Maintainability
Test Coverage
<div class="list-group q-card ">
{% set current_namespace = app.request.get('namespace') %}
{% for namespace in schemas|keys %}
    {% set namespace = namespace | replace({'chamilo_course.settings.' : ''}) %}
    <a
        class = "list-group-item list-group-item-action {% if (current_namespace ==  namespace) %} active {% endif %}"
        href="{{ path('chamilo_core_course_settings', { 'namespace': namespace, 'course' : course.id }) }}"
    >
        <img src="{{ asset('img/icons/32/' ~ namespace ~'.png') }}" alt="{{ namespace }}" />
        {{ namespace | capitalize | trans }}
    </a>
{% endfor %}
</div>