{% macro icon(name, cls='') -%} {%- endmacro %} {% macro logo() -%} {%- endmacro %} {% macro badge(label, tone='neutral', dot=True, cls='', attrs='') -%} {% if dot %}{% endif %}{{ label }} {%- endmacro %} {% macro vm_badge(state, cls='') -%} {%- set s = state|vm_state -%} {{ s.label }} {%- endmacro %} {% macro op_badge(status, cls='') -%} {%- set s = status|operation_state -%} {{ s.label }} {%- endmacro %} {% macro meter(pct, tone=None) -%}
{%- endmacro %} {% macro empty(icon_name, title, text, action_url=None, action_label=None, action_icon='plus') -%}
{{ icon(icon_name, 'icon-xl') }}

{{ title }}

{{ text }}

{% if action_url %}
{{ icon(action_icon) }}{{ action_label }}
{% endif %}
{%- endmacro %} {% macro alert(tone, text, title=None, icon_name=None) -%} {%- set icons = {'success': 'circle-check', 'danger': 'circle-x', 'warning': 'triangle-alert', 'info': 'info', 'brand': 'sparkles'} -%}
{{ icon(icon_name or icons.get(tone, 'info')) }}
{% if title %}{{ title }}{% endif %}{{ text }}
{%- endmacro %} {% macro uploader(action, field, accept, title, hint, redirect, button) -%}
{%- endmacro %}