Archived
1
0
Fork 0

app/views/_partials/pagination.volt: small fix.

This commit is contained in:
Henrik Hautakoski 2018-04-01 11:05:32 +02:00
parent 560234c6d1
commit 7bc6396e91

View file

@ -7,7 +7,7 @@
{% return a < b ? a : b %} {% return a < b ? a : b %}
{%- endmacro %} {%- endmacro %}
{% set pagination_slider = 2 %} {% set pagination_slider = 3 %}
{% if (page.total_pages > 1) %} {% if (page.total_pages > 1) %}
@ -21,7 +21,7 @@
</li> </li>
{% endif %} {% endif %}
{% if page.total_pages > pagination_slider and page.current > pagination_slider %} {% if page.total_pages > pagination_slider and page.current > (pagination_slider + 1) %}
<li> <li>
<a href="{{ pagination_url ~ 1 }}">1</a> <a href="{{ pagination_url ~ 1 }}">1</a>
</li> </li>