{% load custom_filters %}
<div id="page">
{% ifnotequal paginator.page_count 1 %}
<strong>Page</strong>
  {% if paginator.has_previous %}
    <a href="./index.html?{{ inparams|get_page_link:0 }}">|&lt;&lt;先頭ページへ</a>&nbsp;&nbsp;&nbsp;
    <a href="./index.html?{{ inparams|get_page_link:paginator.previous_start_number }}">&lt;前へ</a>&nbsp;&nbsp;&nbsp;
  {% endif %}
  &nbsp;
  {% for page in paginator.links %}
    {% if page.number %}
      <a href="./index.html?{{ inparams|get_page_link:page.start }}">{{ page.number }}</a>&nbsp;&nbsp;&nbsp;
    {% else %}
      {{ page }}&nbsp;&nbsp;&nbsp;
    {% endif %}
  {% endfor %}
  &nbsp;
  {% if paginator.has_next %}
    <a href="./index.html?{{ inparams|get_page_link:paginator.next_start_number }}">次へ&gt;</a>&nbsp;&nbsp;&nbsp;
    <a href="./index.html?{{ inparams|get_page_link:paginator.end_start_number }}">末尾ページへ&gt;&gt;|</a>&nbsp;&nbsp;&nbsp;
  {% endif %}
{% endifnotequal %}
</div>
