<div class="paginator">
  <a href="{{ datagrid.get_first_page_url }}">&laquo;</a></span>{% endif %}
  {% if has_previous %}<a href="?{%if extra_query%}{{extra_query}}&{%endif%}page={{previous}}" title="Previous Page">&lt;</a></span>{% endif %}
  {% for pagenum in page_numbers %}
  {%  ifequal pagenum page %}
    <span class="current-page">{{pagenum}}</span>
  {%  else %}
  <a href="?{{getvars}}&{%if extra_query%}{{extra_query}}&{%endif%}page={{pagenum}}" title="Page {{pagenum}}">{{pagenum}}</a>
  {%  endifequal %}
  {% endfor %}
  {% if has_next %}<a href="?{{getvars}}&{%if extra_query%}{{extra_query}}&{%endif%}page={{next}}" title="Next Page">&gt;</a></span>{% endif %}
  {% if show_last %}<a href="?{{getvars}}&{%if extra_query%}{{extra_query}}&{%endif%}page={{pages}}" title="Last Page">&raquo;</a></span>{% endif %}
  <span class="page-count">{{pages}} pages</span>
</div>
