MarseyWorld/files/templates/search_comments.html

31 lines
824 B
HTML
Raw Normal View History

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 %}">
<small><a class="page-link" href="?q={{query | urlencode}}&page={{page-1}}" tabindex="-1"{% if page==1 %} aria-disabled="true"{% endif %}>Back</a></small>
</li>
<li class="page-item{% if not next_exists %} disabled{% endif %}">
<small><a class="page-link" href="?q={{query | urlencode}}&page={{page+1}}">Next</a></small>
</li>
</ul>
</nav>
{% endif %}
{% endblock %}