Skip to content

Commit 1374372

Browse files
committed
Update pagination.html
HTML Validator - End tag “li” seen, but there were open elements. - Unclosed element “a”.
1 parent 3bc66d8 commit 1374372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_bootstrap/templates/bootstrap/pagination.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<ul class="pagination{% if size %} pagination-{{size}}{% endif %}"{{kwargs|xmlattr}}>
2828
{# prev and next are only show if a symbol has been passed. #}
2929
{% if prev != None -%}
30-
<li{% if not pagination.has_prev %} class="disabled"{% endif %}><a href="{{_arg_url_for(endpoint, url_args, page=pagination.prev_num) if pagination.has_prev else '#'}}">{{prev}}</li></a>
30+
<li{% if not pagination.has_prev %} class="disabled"{% endif %}><a href="{{_arg_url_for(endpoint, url_args, page=pagination.prev_num) if pagination.has_prev else '#'}}">{{prev}}</a></li>
3131
{%- endif -%}
3232

3333
{%- for page in pagination.iter_pages() %}
@@ -43,7 +43,7 @@
4343
{%- endfor %}
4444

4545
{% if next != None -%}
46-
<li{% if not pagination.has_next %} class="disabled"{% endif %}><a href="{{_arg_url_for(endpoint, url_args, page=pagination.next_num) if pagination.has_next else '#'}}">{{next}}</li></a>
46+
<li{% if not pagination.has_next %} class="disabled"{% endif %}><a href="{{_arg_url_for(endpoint, url_args, page=pagination.next_num) if pagination.has_next else '#'}}">{{next}}</a></li>
4747
{%- endif -%}
4848
</ul>
4949
</nav>

0 commit comments

Comments
 (0)