20 lines
650 B
HTML
20 lines
650 B
HTML
{% from "components/icon.html" import Icon %}
|
|
|
|
{% macro Label(type=None, classes="") -%}
|
|
{% set label_info = {
|
|
"invite_pending": {"icon": "envelope", "text": "invite pending", "color": "success",},
|
|
"invite_expired": {"icon": "envelope", "text": "invite expired", "color": "error",},
|
|
"changes_pending": {
|
|
"icon": "exchange",
|
|
"text": "changes pending",
|
|
"color": "default",
|
|
},
|
|
} %}
|
|
|
|
{% if type -%}
|
|
<span class='label label--{{ label_info[type]["color"] }} {{ classes }}'>
|
|
{{ Icon(label_info[type]["icon"]) }} {{ label_info[type]["text"] }}
|
|
</span>
|
|
{%- endif %}
|
|
{%- endmacro %}
|