{% macro angel() %} {% endmacro %} {% macro icon(icon, color) %} {% endmacro %} {% macro iconBool(value) %} {{ _self.icon(value ? 'check-lg' : 'x-lg') }} {% endmacro %} {% macro alert(message, type, raw) %} {% endmacro %} {% macro user(user, opt) %} {{ _self.angel() }} {{ user.displayName }} {%- if opt.pronoun|default(false) and config('enable_pronoun') and user.personalData.pronoun %} ({{ user.personalData.pronoun }}) {% endif -%} {% endmacro %} {% macro button(label, url, type, size, title, icon_left, icon_right) %} {%- if icon_left is defined %}{{ _self.icon(icon_left) }}{% endif %} {{ label }} {%- if icon_right is defined %}{{ _self.icon(icon_right) }}{% endif %} {% endmacro %} {% macro info(text, raw) %} {{ _self.icon('info-circle') }} {%- if raw|default(false) -%} {{ text|raw }} {%- else -%} {{ text }} {%- endif -%} {%- endmacro %} {% macro type_bg_class() -%} {% if theme.type == 'light' %}bg-white{% else %}bg-dark{% endif %} {%- endmacro %} {% macro type_text_class() -%} {% if theme.type == 'light' %}text-dark{% else %}text-light{% endif %} {%- endmacro %}