Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix extra quotation mark #201

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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