Commit d03ca156 authored by fred's avatar fred
Browse files

remove redundant check for sound files

parent bf758a90
......@@ -13,25 +13,23 @@
data-player-audio="Audio-{{ sound.file.url|slugify }}"
data-player-action="playAudio"
></button>
{% if sound|is_format_available:'ogg' or sound|is_format_available:'mp3'%}
<button class="resymbol icon-download big"
title="Download file"
onclick="$('#Download-{{ sound.file.url|slugify }}').toggle();return false;"
></button>
<span class="hidden" id="Download-{{ sound.file.url|slugify }}" >
{% if sound|is_format_available:'ogg' %}
<a target="_blanck" class="icon-file button" href="{{ sound|format_url:'ogg' }}">
<span>ogg</span>
</a>
{% endif %}
{% if sound|is_format_available:'mp3' %}
<a target="_blanck" class="icon-file button" href="{{ sound|format_url:'mp3' }}">
<span>mp3</span>
</a>
{% endif %}
</span>
{% endif %}
<span class="hidden" id="Download-{{ sound.file.url|slugify }}" >
{% if sound|is_format_available:'ogg' %}
<a target="_blanck" class="icon-file button" href="{{ sound|format_url:'ogg' }}">
<span>ogg</span>
</a>
{% endif %}
{% if sound|is_format_available:'mp3' %}
<a target="_blanck" class="icon-file button" href="{{ sound|format_url:'mp3' }}">
<span>mp3</span>
</a>
{% endif %}
</span>
</div>
<audio
data-player='true'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment