{# This file was part of Flask-Bootstrap and was modified under the terms of its BSD License. Copyright (c) 2013, Marc Brinkmann. All rights reserved. #} {# This file was part of Bootstrap-Flask and was modified under the terms of its MIT License. Copyright (c) 2018 Grey Li. All rights reserved.#} {% macro render_ui_nav_item(endpoint, text, iname, color=None) %} {% if request.endpoint is not none %} {% if request.endpoint.endswith(endpoint) %} {{ text }} {% else %} {{ text }} {% endif %} {% else %} {{ text }} {% endif %} {% endmacro %} {% macro render_ui_breadcrumb_item(endpoint, text, icon='right chevron') %} {% set active = True if request.endpoint and request.endpoint == endpoint else False %} {% if active %} {{ text }} {% else %} {{ text }} {% endif %} {% endmacro %}