if data paginator div class container div class text-center ul class p

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% if data.paginator %}
<div class="container">
<div class="text-center">
<ul class="pagination">
<li><a href="{{ data.paginator.a_first }}"><i class="fa fa-fw fa-long-arrow-left"></i></a></li>
{% if data.paginator.has_prev %}
<li><a href="{{ data.paginator.a_prev }}">&laquo;</a></li>
{% else %}
<li class="disabled"><a>&laquo;</a></li>
{% endif %}
{% for a, page in data.paginator.prev_links %}
<li><a href="{{ a }}">{{ page }}</a></li>
{% endfor %}
<li class="active"><a>{{ data.paginator.curr_page }}</a></li>
{% for a, page in data.paginator.next_links %}
<li><a href="{{ a }}">{{ page }}</a></li>
{% endfor %}
{% if data.paginator.has_next %}
<li><a href="{{ data.paginator.a_next }}">&raquo;</a></li>
<li><a href="{{ data.paginator.a_last }}"><i class="fa fa-fw fa-long-arrow-right"></i></a></li>
{% else %}
<li class="disabled"><a>&raquo;</a></li>
<li class="disabled"><a><i class="fa fa-fw fa-long-arrow-right"></i></a></li>
{% endif %}
</ul>
</div>
</div>
{% endif %}