audio.html 506 Bytes
Newer Older
Simon Daron's avatar
Simon Daron committed
1

Simon Daron's avatar
Simon Daron committed
2
3
4
5
{% if file.url %}
<span class="audioControls small" data-audio="Audio-{{ file.url|slugify }}">
	<button class="playpause icon-play">{{ file.content_types }}</button>
	<a class="icon-download" href="{{ file.url }}"></a>
Simon Daron's avatar
Simon Daron committed
6
</span>
Simon Daron's avatar
Simon Daron committed
7
<audio 
Simon Daron's avatar
Simon Daron committed
8
	id="Audio-{{ file.url|slugify }}" 
Simon Daron's avatar
Simon Daron committed
9
	{% if preload %}preload="{{ preload }}"{% endif%}
Simon Daron's avatar
Simon Daron committed
10
	class="{{ class }}" 
Simon Daron's avatar
Simon Daron committed
11
	src="{{ file.url }}" 
Simon Daron's avatar
Simon Daron committed
12
	{% if controls %}controls="{{ controls }}"{% endif%}
Simon Daron's avatar
Simon Daron committed
13
14
	
	></audio>  
Simon Daron's avatar
Simon Daron committed
15
{% else %}
Simon Daron's avatar
Simon Daron committed
16
	<div class="icon-ban-circle ">No sound!</div>
Simon Daron's avatar
Simon Daron committed
17
{% endif%}