bgneal@219: {% extends 'base.html' %} bgneal@219: {% load highlight %} bgneal@219: {% block title %}Search{% endblock %} bgneal@219: {% block content %} bgneal@219:

Search Search

bgneal@219:
bgneal@219: bgneal@219: {{ form.as_table }} bgneal@219: bgneal@219: bgneal@219: bgneal@219: bgneal@219:
  bgneal@219: bgneal@219:
bgneal@219: {% if query %} bgneal@219:

Results

bgneal@219: {% if page.object_list %} bgneal@219:
bgneal@219: {% for result in page.object_list %} bgneal@219:
bgneal@220: {{ result.verbose_name }}: {{ result.object.search_title }} • ({{ result.score }}) bgneal@219:
bgneal@219:
bgneal@220: {% highlight result.object.search_summary with query css_class "highlight" max_length 200 %} bgneal@219:
bgneal@219: {% endfor %} bgneal@219:
bgneal@220: {% else %} bgneal@220:

No results found for {{ query }}.

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