2021-07-30 01:29:25 +09:00
|
|
|
<figure>
|
2021-09-25 21:12:32 +09:00
|
|
|
{% set thumbnail = attachment.getThumbnail() %}
|
2021-08-18 22:04:17 +09:00
|
|
|
<img class="u-photo"
|
|
|
|
alt="{{ attachment.getBestTitle(note) }}"
|
2021-09-25 21:12:32 +09:00
|
|
|
src="{{ attachment.getThumbnailUrl() }}"
|
|
|
|
width="{{ thumbnail.getWidth() }}"
|
|
|
|
height="{{ thumbnail.getHeight() }}">
|
2021-07-30 01:29:25 +09:00
|
|
|
<figcaption><a
|
2021-08-12 11:43:11 +09:00
|
|
|
href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
|
2021-07-30 01:29:25 +09:00
|
|
|
</figcaption>
|
|
|
|
</figure>
|