{% extends "base_with_header_and_right_sidebar.html" %} {% load staticfiles %} {%block DESCRIPTION %}{{view_object.introduction}}{% endblock DESCRIPTION %} {% block TITLE%} {{view_object.title}}{% endblock TITLE %} {%block PAGE_HEADER_TITLE%}Search Results for query: {{query}}{%endblock PAGE_HEADER_TITLE%} {% block PAGE_CONTENT %} {% if query %} {% if page.object_list %} {% for result in page.object_list %}

{{result.object.title}}

{{ result.object.view_object.introduction|safe|truncatewords_html:50 }}

{% endfor %} {% else %}

Search returned with no results.

{%endif%} {% if page.has_previous or page.has_next %}
{% if page.has_previous %} {% endif %}« Previous{% if page.has_previous %} {% endif %} | {% if page.has_next %} {% endif %}Next »{% if page.has_next %} {% endif %}
{% endif %} {% else %} {# Show some example queries to run, maybe query syntax, something else? #} {% endif %} {% endblock PAGE_CONTENT %}