2021-08-14 16:47:45 +01:00
|
|
|
{% set handled = false %}
|
2021-12-27 02:47:04 +00:00
|
|
|
{% for block in handle_event('ViewAttachment', {'attachment': attachment, 'note': note, 'title': title}) %}
|
2021-08-14 16:47:45 +01:00
|
|
|
{% set handled = true %}
|
2021-10-24 22:45:38 +01:00
|
|
|
<div class="note-attachments-unit">
|
2021-09-16 16:27:28 +01:00
|
|
|
{{ block | raw }}
|
|
|
|
</div>
|
2021-08-14 16:47:45 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% if not handled %}
|
2021-10-24 22:45:38 +01:00
|
|
|
<div class="note-attachments-unit">
|
2021-12-27 02:47:04 +00:00
|
|
|
{% if attachment.getFilename() is not null %}
|
|
|
|
<a href="{{ attachment.getShowUrl(note) }}">{{ title }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ title }}
|
|
|
|
{% endif %}
|
2021-08-14 16:47:45 +01:00
|
|
|
</div>
|
2021-04-28 22:25:35 +01:00
|
|
|
{% endif %}
|