diff --git a/templates/search/search.html b/templates/search/search.html index 3215f5e..704884e 100644 --- a/templates/search/search.html +++ b/templates/search/search.html @@ -1,39 +1,22 @@ {% extends 'base.html' %} +{% load crispy_forms_filters %} {% block content %} -

Search

+

Results

-
- - {{ form.as_table }} - - - - -
  - -
+ {% for result in page.object_list %} +

+ {{ result.object }} +

+ {% empty %} +

No results found.

+ {% endfor %} - {% if query %} -

Results

- - {% for result in page.object_list %} -

- {{ result.text }} -

- {% empty %} -

No results found.

- {% endfor %} - - {% 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 %} -
+ {% 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 %} {% endblock %} \ No newline at end of file