Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Commit 752cbde

Browse files
committed
Extended @Gagaro path to use <spans> instead of <a> for disabled links to the pager
1 parent 1ec1483 commit 752cbde

File tree

1 file changed

+9
-0
lines changed
  • bootstrap_pagination/templates/bootstrap_pagination

1 file changed

+9
-0
lines changed

bootstrap_pagination/templates/bootstrap_pagination/pager.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@
33
<li{% if not centered %} class="previous"{% endif %}>
44
<a title="{{ previous_title }}" href="{{ previous_page_url|default:"#"|escape }}">{{ previous_label }}</a>
55
</li>
6+
{% else %}
7+
<li class="{% if not centered %} next{% endif %} disabled">
8+
<span title="{{ previous_title }}">{{ previous_label }}</span>
9+
</li>
610
{% endif %}
11+
712
{% if page.has_next %}
813
<li{% if not centered %} class="next"{% endif %}>
914
<a title="{{ next_title }}" href="{{ next_page_url|default:"#"|escape }}">{{ next_label }}</a>
1015
</li>
16+
{% else %}
17+
<li title="{{ next_title }}" class="{% if not centered %} next{% endif %} disabled">
18+
<span>{{ next_label }}</span>
19+
</li>
1120
{% endif %}
1221
</ul>

0 commit comments

Comments
 (0)