view.html.twig 361 B

1234567891011
  1. {% set handled = false %}
  2. {% for block in handle_event('ViewAttachment', {'attachment': attachment, 'note': note}) %}
  3. {% set handled = true %}
  4. {{ block | raw }}
  5. {% endfor %}
  6. {% if not handled %}
  7. <div>
  8. <i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a> </i>
  9. </div>
  10. {% endif %}