{% extends "base.html" %} {% load i18n mezzanine_tags %} {% block meta_title %}{% trans "Search Results" %}{% endblock %} {% block title %}{% trans "Search Results" %}{% endblock %} {% block extra_head %} {% endblock %} {% block breadcrumb_menu %}
  • {% trans "Home" %}
  • {% trans "Search Results" %}
  • {% endblock %} {% block main %}

    {% if results.paginator.count == 0 %} {% blocktrans %} No results were found in {{ search_type }} matching your query: {{ query }} {% endblocktrans %} {% else %} {% blocktrans with start=results.start_index end=results.end_index total=results.paginator.count %} Showing {{ start }} to {{ end }} of {{ total }} results in {{ search_type }} matching your query: {{ query }} {% endblocktrans %} {% endif %}

    {% for result in results.object_list %} {% with result.get_absolute_url as result_url %}
    {{ forloop.counter0|add:results.start_index }}) {% if result_url %} {{ result }} {% else %} {{ result }} {% endif %}
    {% if result.description != result|stringformat:"s" %}

    {{ result.description|truncatewords_html:20|safe }}

    {% endif %} {% if result_url %} {% trans "read more" %} {% endif %} {% endwith %} {% endfor %}
    {% pagination_for results %} {% endblock %}