2021-07-29 17:29:25 +01:00
|
|
|
<figure>
|
2021-09-25 13:12:32 +01:00
|
|
|
{% set thumbnail = attachment.getThumbnail() %}
|
2021-08-18 14:04:17 +01:00
|
|
|
<img class="u-photo"
|
|
|
|
alt="{{ attachment.getBestTitle(note) }}"
|
2021-09-25 13:12:32 +01:00
|
|
|
src="{{ attachment.getThumbnailUrl() }}"
|
|
|
|
width="{{ thumbnail.getWidth() }}"
|
|
|
|
height="{{ thumbnail.getHeight() }}">
|
2021-12-03 02:22:50 +00:00
|
|
|
<figcaption>
|
|
|
|
{% if attachment.getFilename() is not null %}
|
|
|
|
<a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ attachment.getBestTitle(note) }}
|
|
|
|
{% endif %}
|
|
|
|
</figcaption>
|
2021-07-29 17:29:25 +01:00
|
|
|
</figure>
|