{# The small parts the pages share. #} {% macro state_tag(state) -%} {% set kinds = {"healthy": "ok", "silent": "warn", "unreadable": "bad"} %} {{ state }} {%- endmacro %} {% macro counts(found) -%} {% for count in found if count.count %}{{ count.name }} {{ count.count }} {% else %}none{% endfor %} {%- endmacro %} {% macro facts(found) -%}
{% for fact in found %}
{{ fact.name }}
{{ fact.value | or_missing }}
{% endfor %}
{%- endmacro %} {% macro acts(found) -%} {% for act in found %}{{ act.action }} {{ act.argument }} ยท {{ act.stage }}{{ ", done" if act.executed else ", recorded" }} {% else %}none{% endfor %} {%- endmacro %}