gnu-social/plugins/ImageEncoder/templates/imageEncoder/imageEncoderView.html.twig
2021-12-27 04:56:00 +00:00

15 lines
468 B
Twig

<figure>
<img class="u-photo"
alt="{{ title }}"
src="{{ attachment.getThumbnailUrl(note) }}"
width="{{ thumbnail.getWidth() }}"
height="{{ thumbnail.getHeight() }}">
<figcaption>
{% if attachment.getFilename() is not null %}
<a href="{{ attachment.getShowUrl(note) }}">{{ title }}</a>
{% else %}
{{ title }}
{% endif %}
</figcaption>
</figure>