{% extends 'base.html' %} {% block content %} {% macro filter_dropdown(id, filter, plural='') %} {% endmacro%} {% macro filter_dropdown_nokey(id, filter, plural='') %} {% endmacro%}
{{ intro_text|safe }}
{{ view_switch() }}
{% if practices_filter%} {{ filter_dropdown('practice', practices_filter, 'Practices') }} {% endif %} {% if year_filter %} {{ filter_dropdown_nokey('year', year_filter, 'Year') }} {% endif %} {% if typology_filter %} {{ filter_dropdown_nokey('typology', typology_filter, 'Typologies') }} {% endif %} {% if languages_filter %} {{ filter_dropdown_nokey('scriptingLanguage', languages_filter, 'Scripting languages') }} {% endif %} {% if licenses_filter %} {{ filter_dropdown_nokey('license', licenses_filter, 'Licenses') }} {% endif %} {% if status_filter %} {{ filter_dropdown_nokey('status', status_filter, 'Maintenance status') }} {% endif %} {% if not practices_filter and not year_filter and not typology_filter and not languages_filter and not licenses_filter and not status_filter %} {% else %} Reset {% endif %}
{% if view == 'list' %} {% for resource in resources %} {{ resource_list(resource, loop) }} {% endfor %} {% else %} {% for resource in resources %} {{ resource_with_related(resource, loop) }} {% endfor %} {% endif %}
{% macro render_pagination(pagination) %} {% endmacro %} {{ render_pagination(resources) }}
{% endblock %}