diff --git a/flask_bootstrap/templates/base/utils.html b/flask_bootstrap/templates/base/utils.html index 014bc501..f9012235 100644 --- a/flask_bootstrap/templates/base/utils.html +++ b/flask_bootstrap/templates/base/utils.html @@ -10,15 +10,15 @@ {% endmacro %} -{% macro render_icon(name, size=config.BOOTSTRAP_ICON_SIZE, color=config.BOOTSTRAP_ICON_COLOR, title=None, desc=None) %} -{% set bootstrap_colors = ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark', 'muted'] %} - - {% if title is not none %}{{ title }}{% endif %} - {% if desc is not none %}{{ desc }}{% endif %} - - -{% endmacro %} +{% macro render_icon(name, size=config.BOOTSTRAP_ICON_SIZE, color=config.BOOTSTRAP_ICON_COLOR, title=None, desc=None, classes=None) %} +{%- set bootstrap_colors = ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark', 'muted'] -%} + + {%- if title %}{{ title }}{% endif -%} + {%- if desc %}{{ desc }}{% endif -%} + +{%- endmacro %} {% macro arg_url_for(endpoint, base) %}