{% set data = namespace() %} {% set claims = signature.endorsements | map(attribute="claim") | list %} {# Find recipient claim #} {% for claim in claims %} {% if "RecipientClaim" in claim.type %} {% set data.recipient = claim %} {% endif %} {% endfor %} {# Check if official #} {% set official = officialValidation is defined %} {{ badge.name }}
{# Badge #}

{{ badge.name }}

{{ badge.description }}

{# Recipient #}
{% if data.recipient is defined %}
En/Na
{{ data.recipient.name }}
{% elif recipientProfile.name is defined %}
En/Na
{{ recipientProfile.name }}
{% else %}
Tipus d'identitat
{{ recipient.type }}
Identitat
{{ recipient.identity }}
Ofuscada
{{ recipient.hashed }}
{% if recipient.salt is defined %}
Salt
{{ recipient.salt }}
{% endif %} {% endif %} {# Recipient Claim #} {% if data.recipient is defined %}
Nascut/uda:
{{ data.recipient.birthdate }}
A
{{ data.recipient.nationality }}
{% endif %} {# Formalization #} {% if official %}
Registre oficial de títols
{{ officialValidation.claim.registryCode }}
{% endif %}
{# Logos #} {% if official %} {% endif %} {# Signature lines #} {% if official %} {% endif %} {% if signatureLines is defined %} {% for signatureLine in signatureLines %} {% endfor %} {% endif %}
{% if officialValidation.issuer.image is defined %} {{ officialValidation.issuer.name }} {% else %} {{ officialValidation.issuer.name }} {% endif %} {% if badge.issuer.image is defined %} {{ badge.issuer.name }} {% else %} {{ badge.issuer.name }} {% endif %}
{% if officialValidation.claim.ministrySignature.image is defined %} {{ officialValidation.claim.ministrySignature.name }}
{% endif %} {{ officialValidation.claim.ministrySignature.name }}
{{ officialValidation.claim.ministrySignature.jobTitle }}
{% if signatureLine.image is defined %} {{ signatureLine.name }}
{% endif %} {{ signatureLine.name }}
{{ signatureLine.jobTitle }}
{# Legal text #} {% if badge.legalText is defined %}
{% endif %}