2021-12-03 03:13:28 +00:00
|
|
|
{% if attachment.getFilename() is not null %}
|
|
|
|
<div>
|
|
|
|
<figure>
|
|
|
|
<video
|
|
|
|
{% if attachment.getWidth() is not null %}
|
|
|
|
class="u-video"
|
|
|
|
{% else %}
|
|
|
|
class="u-audio"
|
|
|
|
{% endif %}
|
2021-12-27 02:47:04 +00:00
|
|
|
src="{{ attachment.getUrl(note) }}" controls
|
2021-12-03 03:13:28 +00:00
|
|
|
{% if attachment.getWidth() is not null %}
|
2021-12-27 02:47:04 +00:00
|
|
|
poster="{{ attachment.getThumbnailUrl(note, 'medium')}}"
|
2021-12-03 03:13:28 +00:00
|
|
|
{% endif %}
|
|
|
|
>
|
|
|
|
</video>
|
|
|
|
<figcaption>
|
2021-12-27 02:47:04 +00:00
|
|
|
{% if attachment.getFilename() is not null %}
|
|
|
|
<a href="{{ attachment.getShowUrl(note) }}">{{ title }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ title }}
|
|
|
|
{% endif %} </figcaption>
|
2021-12-03 03:13:28 +00:00
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{# Not stored locally. #}
|
|
|
|
{% endif %}
|