{#- The role templates' one-line fact row, the kit's "Facts" pattern. -#}
{%- macro row(label, value, note="", name="facts") -%}
{{ label }}
{{ value }}{% if note %} {{ note }}{% endif %}
…
{{ label }}
{{ label }}
{{ value }}
{% if note %}
{{ note }}
{% endif %}
{%- endmacro -%}
{#- A "not set up yet" state: its title, what to do, and where, a link the
frame opens as one of core's tabs (`data-om-opens`, kit 0.12.0). -#}
{%- macro next_step(title, text, opens="", where="") -%}
{%- endmacro -%}
{#- An act whose second pair of eyes is on for this person (contract v20,
W6.29): `tool`, the act's tool name; `person`, the request's caller;
`prepared`, the prepared change the page was opened from, if any. Says a
second person makes the change, and to its preparer that it is not
theirs to make. -#}
{%- macro second_pair_of_eyes(tool, person, prepared=none) -%}
{%- if tool in person.second_pair_of_eyes -%}
{%- if prepared and prepared.prepared_by_subject == person.subject -%}
Needs a second person: you prepared this change, so someone other than you makes it.
{%- else -%}
Needs a second person: prepare this change, and someone other than you makes it.