{#
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="mod-pagination-01">
{% if pages.previous is defined %}
<span class="prev page-numbers">
<a href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': pages.first})) }}">{{ '最初へ'|trans }}</a>
</span>
{% endif %}
{% for page in pages.pagesInRange %}
<span class="numberBox">
{% if page == pages.current %}
<span class="current number page-numbers">{{ page }}</span>
{% else %}
<span class="number page-numbers"><a href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a>
</span>
{% endif %}
</span>
{% endfor %}
{% if pages.next is defined %}
<span class="next page-numbers">
<a href="{{ path(
app.request.attributes.get('_route'),
app.request.query.all|merge({'pageno': pages.next})) }}">{{ '次へ'|trans }}</a>
</span>
{% endif %}
</div>
{% endif %}