2021-07-21 01:12:26 +00:00
|
|
|
{% extends "search.html" %}
|
|
|
|
|
|
|
|
{% block listing_template %}
|
|
|
|
<div class="posts p-3 p-md-0">
|
|
|
|
{% with comments=comments %}
|
|
|
|
{% include "comments.html" %}
|
|
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block listinglength %}
|
|
|
|
{{comments | length}}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagenav %}
|
|
|
|
{% if comments %}
|
|
|
|
<nav aria-label="Page navigation">
|
|
|
|
<ul class="pagination pagination-sm mb-0">
|
|
|
|
<li class="page-item{% if page==1 %} disabled{% endif %}">
|
|
|
|
|
2021-09-12 00:24:46 +00:00
|
|
|
<small><a class="page-link" href="?q={{query | urlencode}}&sort={{sort}}&page={{page-1}}" tabindex="-1"{% if page==1 %} aria-disabled="true"{% endif %}>Back</a></small>
|
2021-07-21 01:12:26 +00:00
|
|
|
</li>
|
|
|
|
<li class="page-item{% if not next_exists %} disabled{% endif %}">
|
2021-09-12 00:24:46 +00:00
|
|
|
<small><a class="page-link" href="?q={{query | urlencode}}&sort={{sort}}&page={{page+1}}">Next</a></small>
|
2021-07-21 01:12:26 +00:00
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|