forked from GNUsocial/gnu-social
13 lines
411 B
Twig
13 lines
411 B
Twig
{% set handled = false %}
|
|
{% for block in handle_event('ViewAttachment', {'attachment': attachment, 'note': note}) %}
|
|
{% set handled = true %}
|
|
<div class="note-attachments">
|
|
{{ block | raw }}
|
|
</div>
|
|
{% endfor %}
|
|
{% if not handled %}
|
|
<div>
|
|
<i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a> </i>
|
|
</div>
|
|
{% endif %}
|