summaryrefslogtreecommitdiff
path: root/templates/macros/pagination.html
blob: 077cc5a582fa3405a9cf006dd9f2c01f9084bb98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% macro render_pagination(pagination) %}
  <div class="pagination">
    {% if pagination.has_prev %}
      <a href="{{ pagination.prev|url }}">&laquo; Previous</a>
    {% else %}
      <span class="disabled">&laquo; Previous</span>
    {% endif %}
    | {{ pagination.page }} |
    {% if pagination.has_next %}
      <a href="{{ pagination.next|url }}">Next &raquo;</a>
    {% else %}
      <span class="disabled">Next &raquo;</span>
    {% endif %}
  </div>
{% endmacro %}