{# small building blocks shared by the pages #} {% macro page_head(name, title, sub='') %}
{{ icon(name) }}

{{ title }}

{% if sub %}

{{ sub }}

{% endif %}
{% if caller %}
{{ caller() }}
{% endif %}
{% endmacro %} {% macro role_pill(role) %}{{ icon('shield' if role == 'admin' else 'user') }}{{ role|capitalize }}{% endmacro %} {% macro empty(name, text) %}
{{ icon(name) }}

{{ text }}

{% endmacro %}