{% extends "base.html" %} {% block body %}

{{ ref }} {{ item.id }}

{{ heading }}

{%- set where = around("item.scope", "scope", ring=ring) if ring else around("item.scope.root", "scope") %}

{{ where[0] }}{{ scope }}{{ where[1] }}{% if engine %} · {{ t("item.titled", engine=engine) }}{% endif %} {{ item.status }}

{{ S["section.content"] }}

{%- if artifact %}
{{ S["meta.filename"] }}{{ artifact.filename or S["prov.null"] }}
{{ S["meta.size"] }}{{ artifact.size }}
{{ S["meta.mime"] }}{{ artifact.mime }}
{{ S["meta.sha"] }}{{ artifact.sha }}
{%- if body %}
{{ body }}{% if cut %}…{% endif %}
{% endif %} {%- elif body %}
{{ body }}{% if cut %}…{% endif %}
{%- else %}

{{ S["content.empty"] }}

{%- endif %} {%- if cut %}

{{ S["content.more"] }}

{%- endif %}

{{ S["section.provenance"] }}

{%- for label, value in prov %}
{{ label }}
{% if label == "derived from" and derived_link %}{{ value }}{% elif value %}{{ value }}{% else %}{{ S["prov.null"] }}{% endif %}
{%- endfor %}

{{ S["section.trust"] }}

{#- §3.4: the status stamp, plus for verified the trust.promoted line itself, unlabelled #}
{{ S["dl.status"] }}
{{ item.status }}{% if promoted %} {{ promoted }}{% endif %}

{{ S["section.lifecycle"] }}

{%- for label, value in life %}
{{ label }}
{{ value }}
{%- endfor %}

{{ S["section.tags"] }}

{{ S["dl.tags"] }}
{% if tags %}{% for tag in tags %}#{{ tag }} {% endfor %}{% else %}{{ S["prov.null"] }}{% endif %}
{{ S["dl.key"] }}
{% if key %}{{ key }}{% else %}{{ S["prov.null"] }}{% endif %}
{#- lifeboat.md §18: with htmx the form posts in place and the acts block is swapped; in flight (R9) the button reads Promoting…, every act is disabled and the block is aria-busy. Without JS the same form posts the whole page. An armed block lapses back after its 10 s. #}
{%- if message %}

{{ message[1] }}

{%- endif %} {%- if can_promote %}
{%- if arm %} {{ S["act.promote.sr"] }} {%- else %} {%- endif %}
{%- endif %} {%- if artifact %} {{ S["content.download"] }} {%- endif %}
{% endblock %}