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