{% if resources_page %} {% if resources_page.has_previous or resources_page.has_next %} {% endif %} {% endif %}