From 26200c6cf2b23f622c292619236c913e857e20f6 Mon Sep 17 00:00:00 2001 From: Jieiku <106644+Jieiku@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:44:55 -0700 Subject: [PATCH] Accessibility Update --- templates/macros/macros.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/templates/macros/macros.html b/templates/macros/macros.html index ab025523..c02f1908 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -335,43 +335,43 @@

{%- if paginator.current_index > 6 and paginator.number_pagers > 7 %} - 1 - 2 + 1 + 2 ... {%- elif paginator.current_index > 5 and paginator.number_pagers > 7 %} - 1 - 2 - 3 + 1 + 2 + 3 {%- elif paginator.current_index > 4 and paginator.number_pagers > 6 %} - 1 - 2 + 1 + 2 {%- elif paginator.current_index > 3 and paginator.number_pagers > 5 -%} - 1 + 1 {%- endif -%} {%- for i in range(start=start, end=end+1) -%} {%- if i == paginator.current_index -%} {{i}} {%- elif i > 1 -%} - {{i}} + {{i}} {%- else -%} - {{ i }} + {{ i }} {%- endif -%} {%- endfor -%} {%- if paginator.number_pagers > paginator.current_index+5 and paginator.number_pagers > 7 %} ... - {{paginator.number_pagers-1}} - {{paginator.number_pagers}} + {{paginator.number_pagers-1}} + {{paginator.number_pagers}} {%- elif paginator.number_pagers > paginator.current_index+4 and paginator.number_pagers > 7 %} - {{paginator.number_pagers-2}} - {{paginator.number_pagers-1}} - {{paginator.number_pagers}} + {{paginator.number_pagers-2}} + {{paginator.number_pagers-1}} + {{paginator.number_pagers}} {%- elif paginator.number_pagers > paginator.current_index+3 and paginator.number_pagers > 6 %} - {{paginator.number_pagers-1}} - {{paginator.number_pagers}} + {{paginator.number_pagers-1}} + {{paginator.number_pagers}} {%- elif paginator.number_pagers > paginator.current_index+2 and paginator.number_pagers > 5 %} - {{paginator.number_pagers}} + {{paginator.number_pagers}} {%- endif -%} {%- endif %}