2021-12-30 00:51:12 +00:00
|
|
|
{% extends 'collections/collection.html.twig' %}
|
2021-12-24 00:38:06 +00:00
|
|
|
|
2021-12-30 00:51:12 +00:00
|
|
|
{% block collection_items %}
|
|
|
|
{% for key, attachment in attachments %}
|
|
|
|
<section class="section-widget section-padding">
|
|
|
|
{% include '/cards/attachments/view.html.twig' with {'attachment': attachment, 'note': bare_notes[key], 'title': attachment.getBestTitle(bare_notes[key])} only %}
|
|
|
|
<a class="section-widget-button-like"
|
|
|
|
href="{{ attachment.getDownloadUrl(bare_notes[key]) }}"> {{ 'Download link' | trans }}</a>
|
|
|
|
</section>
|
|
|
|
{% else %}
|
|
|
|
<div id="empty-notes"><h1>{% trans %}No attachments here.{% endtrans %}</h1></div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock collection_items %}
|