{% macro badge(text, kind="muted") %}{{ text }}{% endmacro %} {# imported macros do not see the page context, so the token is passed in explicitly #} {% macro csrf(token) %}{% endmacro %} {% macro status_badge(status) %} {% set kinds = {"done": "ok", "failed": "bad", "needs_input": "warn", "running": "info", "pending": "info"} %} {{ status | status }} {% endmacro %}