|
12 | 12 | </select> |
13 | 13 | </div> |
14 | 14 | </div> |
15 | | -<<<<<<< Updated upstream |
16 | 15 |
|
17 | 16 | {% if page_obj.paginator.num_pages > 1 %} |
18 | 17 | <nav class="pagination is-centered" role="navigation" aria-label="pagination"> |
19 | 18 | {% if page_obj.has_previous %} |
20 | 19 | <a href="?page={{ page_obj.previous_page_number }}&search={{ search|urlencode }}&page_size={{ current_page_size }}" |
21 | | -======= |
22 | | - |
23 | | - {% if page_obj.paginator.num_pages > 1 %} |
24 | | - <nav class="pagination is-centered" role="navigation" aria-label="pagination"> |
25 | | - {% if page_obj.has_previous %} |
26 | | - <a href="{{ base_url }}&page={{ page_obj.previous_page_number }}" |
27 | | ->>>>>>> Stashed changes |
28 | 20 | class="pagination-previous">Previous</a> |
29 | 21 | {% else %} |
30 | 22 | <button class="pagination-previous" disabled>Previous</button> |
31 | 23 | {% endif %} |
32 | | -<<<<<<< Updated upstream |
33 | 24 |
|
34 | 25 | {% if page_obj.has_next %} |
35 | 26 | <a href="?page={{ page_obj.next_page_number }}&search={{ search|urlencode }}&page_size={{ current_page_size }}" |
36 | | -======= |
37 | | - |
38 | | - {% if page_obj.has_next %} |
39 | | - <a href="{{ base_url }}&page={{ page_obj.next_page_number }}" |
40 | | ->>>>>>> Stashed changes |
41 | 27 | class="pagination-next">Next</a> |
42 | 28 | {% else %} |
43 | 29 | <button class="pagination-next" disabled>Next</button> |
44 | 30 | {% endif %} |
45 | | -<<<<<<< Updated upstream |
46 | | - |
47 | | -======= |
48 | | - |
49 | | ->>>>>>> Stashed changes |
50 | 31 | <ul class="pagination-list"> |
51 | 32 | {% for page_num in page_range %} |
52 | 33 | {% if page_num == '...' %} |
53 | 34 | <li><span class="pagination-ellipsis">…</span></li> |
54 | 35 | {% else %} |
55 | 36 | <li> |
56 | | -<<<<<<< Updated upstream |
57 | 37 | <a href="?page={{ page_num }}&search={{ search|urlencode }}&page_size={{ current_page_size }}" |
58 | | -======= |
59 | | - <a href="{{ base_url }}&page={{ page_num }}" |
60 | | ->>>>>>> Stashed changes |
61 | 38 | class="pagination-link {% if page_num == page_obj.number %}is-current{% endif %}" |
62 | 39 | aria-label="Go to page {{ page_num }}" |
63 | 40 | {% if page_num == page_obj.number %}aria-current="page"{% endif %}> |
|
69 | 46 | </ul> |
70 | 47 | </nav> |
71 | 48 | {% endif %} |
72 | | -<<<<<<< Updated upstream |
73 | 49 | </div> |
74 | 50 |
|
75 | 51 | <style> |
|
98 | 74 | window.location.href = newUrl; |
99 | 75 | } |
100 | 76 | </script> |
101 | | -======= |
102 | | - </div> |
103 | | - |
104 | | - <style> |
105 | | - .select.is-disabled { |
106 | | - opacity: 0.7; |
107 | | - cursor: not-allowed; |
108 | | - } |
109 | | - .select.is-disabled select { |
110 | | - cursor: not-allowed; |
111 | | - } |
112 | | - </style> |
113 | | - |
114 | | - <script> |
115 | | - function handlePageSizeChange(value) { |
116 | | - const url = new URL(window.location.href); |
117 | | - const params = new URLSearchParams(url.search); |
118 | | - params.set('page_size', value); |
119 | | - params.delete('page'); |
120 | | - window.location.href = `${url.pathname}?${params.toString()}`; |
121 | | - } |
122 | | - </script> |
123 | | ->>>>>>> Stashed changes |
0 commit comments