v6/site/includes/pagination.html

30 lines
872 B
HTML
Raw Permalink Normal View History

2022-12-10 18:15:32 +00:00
<div class="pagination" role="navigation">
<p>
<span class="pagination-link">
{% match pagination_info.prev_href %}
{% when Some with (href) %}
<a href="{{ href }}">
<span class="arrow arrow-left" aria-hidden="true"></span>
<span>Previous</span>
</a>
{% when None %}
<span class="arrow arrow-left" aria-hidden="true"></span>
<span>Previous</span>
{% endmatch %}
</span>
Page {{ pagination_info.page }} of {{ pagination_info.total_pages }}
<span class="pagination-link">
{% match pagination_info.next_href %}
{% when Some with (href) %}
<a href="{{ href }}">
<span>Next</span>
<span class="arrow arrow-right" aria-hidden="true"></span>
</a>
{% when None %}
<span>Next</span>
<span class="arrow arrow-right" aria-hidden="true"></span>
{% endmatch %}
</span>
</p>
</div>