{% if query %}
  <p>Page {{page.number}}/{{paginator.num_pages}}</p>
  <ul>
  {% for result in page.object_list %}
    <li><a class="result_link hand_cursor" data-dsid="{{ result.object.pk }}">{{ result.object.title }}</a></li>
  {% endfor %}
  </ul>
  {% if page.has_previous or page.has_next %}
  <div id="search_prev_next">                    
    {% if page.has_previous %}
      <a class="ajax-link" href="{% url 'searchajax' %}?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Prec.{% if page.has_previous %}</a>
    {% endif %}
    |
    {% if page.has_next %}
      <a class="ajax-link" href="{% url 'searchajax' %}?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Suiv. &raquo;{% if page.has_next %}</a>
    {% endif %}
  </div>
  {% endif %}
{% else %}
  <p>Aucun résultat.</p>
{% endif %}
