feat: change paginator style
This commit is contained in:
parent
16922b8ac6
commit
5b605ecabb
1 changed files with 10 additions and 6 deletions
|
@ -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 }}">« Prev</a>
|
<a href="{{ paginator.previous_page_path }}">Prev</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span>« 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 »</a>
|
<a href="{{ paginator.next_page_path }}">Next</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span>Next »</span>
|
<span>Next</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue