{% set licences = resource.licences | map(attribute="licence") | list %}
{% set contains = resource.regions | map(attribute="object_id") | set | select | sort | list %}
Type{{ resource.nature.id }}File format{{ resource.file_format }}Size{{ size[0] }}×{{ size[1] }}Number of regions{{ resource.regions | length }}Number of labelled regions{{ resource.regions | selectattr("object_id") | list | length }}Date uploaded{{ resource.timestamp }}
Contains objects: {{ contains | join(", ") }}
Available under:
{% for licence in licences %}
{{ licence.title }}
{% if not loop.last %}, {% endif %}
{% endfor %}
{% for licence in licences %}
{% if licence.logo_url %}
{% if licence.info_url %}
{# An equivalent link already exists, only one is focusable #}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
{% endblock %}