gnu-social/plugins/AudioEncoder/templates/audioEncoder/audioEncoderView.html.twig
2021-12-27 04:56:00 +00:00

18 lines
429 B
Twig

{% if attachment.getFilename() is not null %}
<div>
<figure>
<audio class="u-audio" src="{{ attachment.getUrl(note) }}" controls>
</audio>
<figcaption>
{% if attachment.getFilename() is not null %}
<a href="{{ attachment.getShowUrl(note) }}">{{ title }}</a>
{% else %}
{{ title }}
{% endif %}
</figcaption>
</figure>
</div>
{% else %}
{# Not stored locally. #}
{% endif %}