Skip to content

Commit

Permalink
Merge pull request #201 from msoucy/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli authored Jan 27, 2022
2 parents b518455 + 55553d4 commit ab5dad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_bootstrap/templates/base/nav.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro render_nav_item(endpoint, text, badge='', use_li=False) %}
{% set active = True if request.endpoint and request.endpoint == endpoint else False %}
{% if use_li %}<li class="nav-item">{% endif %}
<a class="{% if not use_li %}nav-item {% endif %}nav-link{% if active %} active" aria-current="page"{% endif %}"
<a class="{% if not use_li %}nav-item {% endif %}nav-link{% if active %} active" aria-current="page{% endif %}"
href="{{ url_for(endpoint, **kwargs) }}">
{{ text }} {% if badge %}<span class="badge badge-light">{{ badge }}</span>{% endif %}
</a>
Expand Down

0 comments on commit ab5dad1

Please sign in to comment.