{%- endmacro %}
{#- legacy_store_notice(what, import_url="", count=0, csrf_token="") -- the notice on the pages of the older secrets store (audit ADM-07): nothing in the
product reads what is written there, the vault is where secrets belong, and, when there are legacy secrets and the viewer may import them, the button that
carries them across. ``what`` is "secrets" or "secret scopes". #}
{% macro legacy_store_notice(what, import_url="", count=0, csrf_token="") -%}
These are legacy {{ what }}. Nothing in Pychestrate reads them: repositories, webhooks and notification channels use the secrets vault under
System, Secrets, and new secrets belong there.
{%- if import_url and count %}
{%- endif %}
{%- endmacro %}
{#- learn_more(page, anchor="", label="Learn more") -- a link from a form to the section of the user guide that explains it (DOC-20). It draws
nothing when the guide is not installed or has no such page (``guide_link`` answers ""), so it never leads nowhere. It opens in a new tab so a
half-filled form is not lost, and says so to a screen reader. ``page`` is the chapter's file name without ``.html``; ``anchor`` is the section's id. #}
{% macro learn_more(page, anchor="", label="Learn more") -%}
{%- set href = guide_link(page, anchor) -%}
{%- if href %}
{%- endmacro %}
{# A running job's progress: the bar and the pod's last message ("tick 16"), only when the pod has reported some (the guide's PYC-PROGRESS lines). #}
{% macro job_progress(progress) %}
{% if progress %}
{% if progress.percent is not none %}
{{ progress.percent | round(0) | int }}%{% endif %}
{% if progress.message %}
{{ progress.message }}
{% endif %}
{% endif %}
{% endmacro %}