{# 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 %}
{% 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 %} {% endblock %} {% endif %} {% endwith %} {% endblock %#}