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