2021-12-03 12:13:28 +09:00
|
|
|
{% if attachment.getFilename() is not null %}
|
2021-10-25 06:11:07 +09:00
|
|
|
<div>
|
|
|
|
<figure>
|
|
|
|
<audio class="u-audio" src="{{ attachment.getUrl() }}" controls>
|
|
|
|
</audio>
|
2021-12-03 11:22:50 +09:00
|
|
|
<figcaption>
|
|
|
|
{% if attachment.getFilename() is not null %}
|
|
|
|
<a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ attachment.getBestTitle(note) }}
|
|
|
|
{% 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 %}
|