{% extends "django_deovi/base.html" %} {% load crispy_forms_tags i18n %} {% block head_title %}{% translate "Search" %} - {{ block.super }}{% endblock head_title %} {% block header_search_bar %}{% endblock header_search_bar %} {% block app_content %}
{% crispy form %}
{% if query %}

{% translate "Results" %} ({{ paginator.count }})

{% with results=page_obj.object_list %} {% if results %}
{% for result in results %} {% if result.model_name == "directory" %} {% elif result.model_name == "mediafile" %} {% endif %} {% endfor %}
{% else %}

{% translate "No results found." %}

{% endif %} {% endwith %} {% include "django_deovi/pagination.html" %} {% comment %}{% include "atoum/pagination.html" with page=page_obj query=query %}{% endcomment %} {% else %}

{% translate "No search pattern was submitted." %}

{% endif %}
{% endblock app_content %}