Skip to content

Commit

Permalink
Merge pull request mbr#122 from Alexmod/patch-1
Browse files Browse the repository at this point in the history
Update pagination.html
  • Loading branch information
mbr committed Feb 10, 2016
2 parents 3bc66d8 + 1374372 commit 37a1632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_bootstrap/templates/bootstrap/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ul class="pagination{% if size %} pagination-{{size}}{% endif %}"{{kwargs|xmlattr}}>
{# prev and next are only show if a symbol has been passed. #}
{% if prev != None -%}
<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>
<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>
{%- endif -%}

{%- for page in pagination.iter_pages() %}
Expand All @@ -43,7 +43,7 @@
{%- endfor %}

{% if next != None -%}
<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>
<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>
{%- endif -%}
</ul>
</nav>
Expand Down

0 comments on commit 37a1632

Please sign in to comment.