This repository was archived by the owner on Apr 17, 2021. It is now read-only.
File tree 2 files changed +48
-0
lines changed
2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ < ul class ="pager ">
2
+ {% if page.has_previous %}
3
+ < li {% if not centered %} class ="previous "{% endif %} >
4
+ < a title ="{{ previous_title }} " href ="{{ previous_page_url|default: "# " }}"> {{ previous_label }}</ a >
5
+ </ li >
6
+ {% endif %}
7
+ {% if page.has_next %}
8
+ < li {% if not centered %} class ="next "{% endif %} >
9
+ < a title ="{{ next_title }} " href ="{{ next_page_url|default: "# " }}"> {{ next_label }}</ a >
10
+ </ li >
11
+ {% endif %}
12
+ </ ul >
Original file line number Diff line number Diff line change
1
+ {% load bootstrap_pagination %}
2
+ < div class ="pagination {% if size == "mini " %}pagination-mini{% endif %}{% if size == "small " %}pagination-small{% endif %}{% if size == "large " %}pagination-large{% endif %} {% if alignment == "center " %}pagination-centered{% endif %}{% if alignment == "right " %}pagination-right{% endif %} {% block extra_classes %}{% endblock %} ">
3
+ < ul >
4
+ {% if show_first_last %}
5
+ < li {% if not page.has_previous %}class ="disabled "{% endif %} >
6
+ < a title ="First Page " href ="{{ first_page_url|default: "# " }}"> {{first_label}}</ a >
7
+ </ li >
8
+ {% endif %}
9
+ {% if show_prev_next %}
10
+ < li {% if not page.has_previous %}class ="disabled "{% endif %} >
11
+ < a title ="Previous Page " href ="{{ previous_page_url|default: "# " }}"> {{ previous_label }}</ a >
12
+ </ li >
13
+ {% endif %}
14
+ {% for pagenum, url in page_urls %}
15
+ {% if page.number == pagenum %}
16
+ < li class ="active ">
17
+ < a title ="Current Page " href ="# "> {{ pagenum }}</ a >
18
+ </ li >
19
+ {% else %}
20
+ < li >
21
+ < a title ="Page {{ pagenum }} of {{ page.paginator.num_pages }} " href ="{{ url }} "> {{ pagenum }}</ a >
22
+ </ li >
23
+ {% endif %}
24
+ {% endfor %}
25
+ {% if show_prev_next %}
26
+ < li {% if not page.has_next %}class ="disabled "{% endif %} >
27
+ < a title ="Next Page " href ="{{ next_page_url|default: "# " }}"> {{ next_label }}</ a >
28
+ </ li >
29
+ {% endif %}
30
+ {% if show_first_last %}
31
+ < li {% if not page.has_next %}class ="disabled "{% endif %} >
32
+ < a title ="Last Page " href ="{{ last_page_url|default: "# " }}"> {{last_label}}</ a >
33
+ </ li >
34
+ {% endif %}
35
+ </ ul >
36
+ </ div >
You can’t perform that action at this time.
0 commit comments