{# Signature state for a commit or a tag. Expects `sig` in scope.
Nothing renders for an unsigned object. Every forge that badges "unsigned"
is training people to ignore the badge, and the overwhelming majority of
commits everywhere are unsigned. Only a signature that exists says anything.
The verified case names the signer, which is the thing no forge without its
own key store can do: the key that made the signature is the key that
authenticates their pushes. #}
{% match sig %}
{% when git::signing::SignatureStatus::Unsigned %}
{% when git::signing::SignatureStatus::SignedBy { username, fingerprint } %}
Signed by {{ username }}
{% when git::signing::SignatureStatus::ValidUnknownKey { fingerprint } %}
Signed, key not registered here
{% when git::signing::SignatureStatus::Invalid %}
Signature does not verify
{% when git::signing::SignatureStatus::Unverified { format } %}
Signed with {{ format }}, not checked
{% endmatch %}