{# Displays a sidebard module with navigation containing the provided resources. If no resources are provided then the module will not be displayed. pkg - The package dict that owns the resources. active - The id of the currently displayed resource. action - The controller action to use (default: 'resource_read'). Example: {% snippet "package/snippets/resources.html", pkg=pkg, active=res.id %} #} {% set resources = pkg.resources or [] %} {% if resources %} {% block resources %}
{% block resources_inner %} {% block resources_title %}

{{ _("Resources") }}

{% endblock %} {% block resources_list %} {% endblock %} {% endblock %}
{% endblock %} {% endif %} {#% block facet_list %} {% set hide_empty = hide_empty or false %} {% with items = items or h.get_facet_items_dict(name) %} {% if items or not hide_empty %} {% if within_tertiary %} {% set nav_class = 'nav nav-pills nav-stacked' %} {% set nav_item_class = ' ' %} {% set wrapper_class = 'nav-facet nav-facet-tertiary' %} {% endif %} {% block facet_list_item %}
{% block facet_list_heading %}

{% set title = title or h.get_facet_title(name) %} {{ title }}

{% endblock %} {% block facet_list_items %} {% with items = items or h.get_facet_items_dict(name) %} {% if items %} {% else %}

{{ _('There are no {facet_type} that match this search').format(facet_type=title) }}

{% endif %} {% endwith %} {% endblock %}
{% endblock %} {% endif %} {% endwith %} {% endblock %#}