feat: change paginator style

This commit is contained in:
jeffreytse 2020-07-12 17:39:23 +08:00
parent 16922b8ac6
commit 5b605ecabb

View file

@ -3,19 +3,23 @@
{% endif %} {% endif %}
{% if paginator.posts.size > 0 %} {% if paginator.posts.size > 0 %}
<div class="pagination"> <div class="paginator">
<span class="previous">
{% if paginator.previous_page %} {% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}">&laquo; Prev</a> <a href="{{ paginator.previous_page_path }}">Prev</a>
{% else %} {% else %}
<span>&laquo; Prev</span> <span>Prev</span>
{% endif %} {% endif %}
</span>
<span> {{ paginator.page }}/{{ paginator.total_pages }}</span> <span class="indicator"> {{ paginator.page }}/{{ paginator.total_pages }}</span>
<span class="next">
{% if paginator.next_page %} {% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}">Next &raquo;</a> <a href="{{ paginator.next_page_path }}">Next</a>
{% else %} {% else %}
<span>Next &raquo;</span> <span>Next</span>
{% endif %} {% endif %}
</span>
</div> </div>
{% endif %} {% endif %}