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