{% set downloads = profile.downloads %}
{% if downloads %}
{% embed 'network/widget/widget.html.twig' %}
{% block content %}
<div>
<h3 class="mb-5 text-lg font-medium uppercase font-headline text-neutral-600">
{{ 'Downloads'|trans }}
</h3>
<ul class="grid gap-3">
{% for download in downloads %}
<li class="flex gap-2">
{% include 'icons/download.svg.twig' with { class: 'w-5 h-5 mt-px flex-shrink-0' } %}
<a href="{{ absolute_url(download.element.fullPath) }}"
target="_blank"
title="{{ download.data.title }}"
class="grid"
rel="noopener noreferrer"
download>
<span class="truncate">{{ download.data.title ?? download.element.key }}</span>
<span class="text-sm truncate text-neutral-500">
{{ download.element.mimetype }} [{{ download.element.filesize(true) }}]
</span>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
{% endembed %}
{% endif %}