{% extends "subjects/list.html" %} {% load static i18n pagination %} {% load django_bootstrap_breadcrumbs subject_counter %} {% block javascript%} {{ block.super }} {% endblock%} {% block breadcrumbs %} {% clear_breadcrumbs %} {% breadcrumb 'Home' 'subjects:home' %} {% trans 'You Searched for: ' as bread %} {% with bread|add:tags as term %} {% breadcrumb term 'subjects:index' %} {% endwith %} {% endblock breadcrumbs %} {% block content %} {% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if empty %}

{% trans "Search results" %}: {% trans " Any subjects or Resources were not found on the search for " %} {{tags}}

{% else %}

{% trans "Search results" %}:

{% endif %}
{% if not all %}
{% for subject in subjects %} {% include "subjects/subject_card.html" with accordion_id="subject-accordion" %} {% endfor %} {% pagination request paginator page_obj %}
{% elif resources|length > 0 and all %}
{% for resource in resources %} {% include "subjects/resource_card.html" with resource=resource accordion_id="subject-accordion" %} {% endfor %} {% pagination request paginator page_obj %}
{% else %} {% endif %}
{% endblock content %}