src/Eccube/Resource/template/default/pager.twig line 1

Open in your IDE?
  1. {% if pages.pageCount > 1 %}
  2. {% set p_url = app.request.attributes.get('_route') %}
  3. <div class="pager">
  4. <table border="0" cellspacing="0" cellpadding="0" class="pager2"><tbody><tr>
  5. <th class="p_no">
  6. <a href="{% if pages.firstPageInRange != 1 %}{{ path(p_url, app.request.query.all|merge({'pageno': pages.first})) }}{% else %}javascript:void(0){% endif %}">最初へ</a></th>
  7. <th class="p_no">
  8. <a href="{% if pages.previous is defined %}{{ path(p_url, app.request.query.all|merge({'pageno': pages.previous})) }}{% else %}javascript:void(0){% endif %}">前へ</a></th>
  9. {% if pages.firstPageInRange != 1 %}
  10. <td><a href="{{ path(p_url, app.request.query.all|merge({'pageno': pages.first})) }}">1</a></td>
  11. <td>...</td>
  12. {% endif %}
  13. {% for page in pages.pagesInRange %}
  14. {% if page == pages.current %}
  15. <td class="active"><a href="{{ path(p_url, app.request.query.all|merge({'pageno': page})) }}">{{ page }}</a></td>
  16. {% else %}
  17. <td><a href="{{ path(p_url, app.request.query.all|merge({'pageno': page})) }}">{{ page }}</a></td>
  18. {% endif %}
  19. {% endfor %}
  20. {% if pages.last != pages.lastPageInRange %}
  21. <td>...</td>
  22. <td><a href="{{ path(p_url, app.request.query.all|merge({'pageno': pages.last})) }}" aria-label="Last"><span aria-hidden="true">{{ pages.last }}</span></a></td>
  23. {% endif %}
  24. <th class="p_no">
  25. <a href="{% if pages.next is defined %}{{ path(p_url, app.request.query.all|merge({'pageno': pages.next})) }}{% else %}javascript:void(0){% endif %}">次へ</a>
  26. </th>
  27. <th class="p_no">
  28. <a href="{% if pages.last != pages.lastPageInRange %}{{ path(p_url, app.request.query.all|merge({'pageno': pages.last})) }}{% else %}javascript:void(0){% endif %}">最後へ</a>
  29. </th>
  30. </tr></tbody></table>
  31. </div><!--//pager-->
  32. {% endif %}