17 lines
585 B
HTML
17 lines
585 B
HTML
{% load wagtailadmin_tags %}
|
|
|
|
{% for page in results %}
|
|
{% include "common/listing-item.html" with breadcrumbs=True show_listing_images=True %}
|
|
{% endfor %}
|
|
|
|
{% if not results and page_num == 1 %}
|
|
<p>No results found</p>
|
|
<p id="result-count" hx-swap-oob="true"></p>
|
|
{% else %}
|
|
<p id="result-count" hx-swap-oob="true">Found {{ paginator.count }} results</p>
|
|
{% endif %}
|
|
|
|
{% if results.has_next %}
|
|
<span hx-get="{{ search_url }}{% querystring page=results.next_page_number %}" hx-trigger="revealed" hx-indicator="#search-page-indicator" hx-swap="outerHTML"></span>
|
|
{% endif %}
|