pagination looks a little less wonky
This commit is contained in:
parent
d56d45f19f
commit
f5420dac1e
1 changed files with 4 additions and 0 deletions
|
@ -29,12 +29,16 @@
|
||||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
||||||
{% if paginator.previous %}
|
{% if paginator.previous %}
|
||||||
<a class="button is-primary pagination-previous" href="{{ paginator.previous }}">« Previous</a>
|
<a class="button is-primary pagination-previous" href="{{ paginator.previous }}">« Previous</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="button is-primary pagination-previous" disabled title="This is the first page">« Previous</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul class="pagination-list">
|
<ul class="pagination-list">
|
||||||
<li>Page {{ paginator.current_index }} of {{ paginator.number_pagers }}</li>
|
<li>Page {{ paginator.current_index }} of {{ paginator.number_pagers }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% if paginator.next %}
|
{% if paginator.next %}
|
||||||
<a class="button is-primary pagination-next" href="{{ paginator.next }}">Next »</a>
|
<a class="button is-primary pagination-next" href="{{ paginator.next }}">Next »</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="button is-primary pagination-next" disabled title="This is the last page">Next »</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue