2021-12-03 03:13:28 +00:00
|
|
|
{% if attachment.getFilename() is not null %}
|
2021-10-24 22:11:07 +01:00
|
|
|
<div>
|
|
|
|
<figure>
|
2021-12-27 02:47:04 +00:00
|
|
|
<audio class="u-audio" src="{{ attachment.getUrl(note) }}" controls>
|
2021-10-24 22:11:07 +01:00
|
|
|
</audio>
|
2021-12-03 02:22:50 +00:00
|
|
|
<figcaption>
|
|
|
|
{% if attachment.getFilename() is not null %}
|
2021-12-27 02:47:04 +00:00
|
|
|
<a href="{{ attachment.getShowUrl(note) }}">{{ title }}</a>
|
2021-12-03 02:22:50 +00:00
|
|
|
{% else %}
|
2021-12-27 02:47:04 +00:00
|
|
|
{{ title }}
|
2021-12-03 02:22:50 +00:00
|
|
|
{% endif %}
|
2021-10-24 22:11:07 +01:00
|
|
|
</figcaption>
|
|
|
|
</figure>
|
|
|
|
</div>
|
2021-12-03 03:13:28 +00:00
|
|
|
{% else %}
|
|
|
|
{# Not stored locally. #}
|
|
|
|
{% endif %}
|