Move default template for tables out of template into table base class
[ganeti_webmgr.git] / ganeti_web / templates / paginator.html
blobc409799120072a584667d3fc90562ef022041799
1 {% load i18n %}
2 {% load django_tables2 %}
3 {% if is_paginated %}
4 <ul id="pagination" class="pagination">
5 {% if page_obj.has_previous %}
6 <li class="previous">
7 <a href="{{ ajax_url }}{% querystring table.prefixed_page_field=table.page.previous_page_number %}">&laquo; {% trans "Previous" %}</a>
8 </li>
9 {% endif %}
11 {% for page in paginator.page_range %}
12 <li class="{% if page == page_obj.number%}active {% endif %}page">
13 <a href="{{ ajax_url }}{% querystring table.prefixed_page_field=page %}">{{ page }}</a>
14 </li>
15 {% endfor %}
17 {% if page_obj.has_next %}
18 <li class="next">
19 <a href="{{ ajax_url }}{% querystring table.prefixed_page_field=table.page.next_page_number %}">{% trans "Next" %} &raquo;</a>
20 </li>
21 {% endif %}
22 </ul>
23 {% endif %}