{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if pages.pageCount > 1 %}
<div class="pagination">
<ul>
{% if pages.previous is defined %}
<li class="ec-pager__item">
<a class="prev" href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': pages.previous})) }}">
</a>
</li>
{% endif %}
{% for page in pages.pagesInRange %}
{% if page == pages.current %}
<li class="ec-pager__item">
<a class="active" href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': page})) }}">{{ page }}</a>
</li>
{% else %}
<li class="ec-pager__item">
<a href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': page})) }}">{{ page }}</a>
</li>
{% endif %}
{% endfor %}
{% if pages.next is defined %}
<li class="ec-pager__item">
<a class="next" href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': pages.next})) }}"></a>
</li>
{% endif %}
{% if pages.last != pages.lastPageInRange %}
<li class="ec-pager__item">
<a class="next_end" href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': pages.last})) }}"></a>
</li>
{% endif %}
</ul>
</div>
{% endif %}