{% extends 'site_base.html' %} {% load tei %} {% block page-subtitle %} : Search Results{% endblock %} {% block content %}

Search Results

{% if form.errors %} {% for field, msg in form.errors.iteritems %} {{ msg }} {% endfor %} {% elif query_error %} {# TODO: more detail here would probably be useful (could be anything) #}

There was an error processing your search.

{% else %}

Found {{ documents.count }} result{{ documents.count|pluralize }} for {{ keywords }}. Results sorted by relevance.

{% for document in documents %}
{# note: relevance score available as document.fulltext_score #} {% url 'groupsheets:view' id=document.id as document_url %}

{{ document.title }}

{# TODO: might be nice if groupsheet list and search result list were closer... #}
{% endfor %} {% endif %} {# valid form #}
{% endblock %}