{#- The close pages' shared bits (docs/close-remove-plan.md). -#} {% macro style() -%} {%- endmacro %} {#- One severity's findings, with what fixes each where there is one. -#} {% macro findings(res, sev, e=None, live=True) -%} {% set fs = res.findings|selectattr("severity", "equalto", sev)|list %} {% if fs %}

{{ {"busy": "Busy: closing now would interrupt these", "unsaved": "Unsaved: deleting the folder would lose these", "note": "Notes"}[sev] }}

{% endif %} {%- endmacro %} {#- What deleting would lose, for the acknowledgement: the unsaved findings but the commits, which are bundled into history. -#} {% macro losses(res) -%} {%- set ls = res.findings|selectattr("severity", "equalto", "unsaved")|rejectattr("kind", "equalto", "unpushed")|list -%} {%- for f in ls %}{% if f.repo and f.repo != "." %}{{ f.repo }}: {% endif %}{{ f.msg }}{{ "; " if not loop.last }}{% endfor -%} {%- endmacro %} {% macro chips(o) -%} {% if o %}{% for c in o.chips %}{{ c.text }}{% endfor %}{% endif %} {%- endmacro %}