]> git.0d.be Git - panikweb-esperanzah.git/blobdiff - panikweb_esperanzah/templates/includes/audio.html
style embedded player
[panikweb-esperanzah.git] / panikweb_esperanzah / templates / includes / audio.html
index 6ae7dd515fb90430b1a0fcead020fd4195bb806d..4d36d011157d5fa0adbc13a234b490d47ee0e125 100644 (file)
@@ -1,18 +1,6 @@
 {% load soundfiles paniktags i18n %}
 {% if sound|is_format_available:'mp3' or sound|is_format_available:'ogg' %}
        <div class="audio" data-sound-id="{{ sound.id }}">
-               {% if embed %}
-               <a class="resymbol icon-download big"
-                       title="Download file"
-                       target="_new" rel="noopener" download
-                       {% if sound|is_format_available:'mp3' %}
-                       href="{{ sound|format_url:'mp3' }}"
-                       {% else %}
-                       href="{{ sound|format_url:'ogg' }}"
-                       {% endif %}
-                       ></a>
-               {% endif %}
-               {% if not embed %}
                <button class="action-play"
                        data-player-audio="Audio-{{ sound.file.url|slugify }}" 
                        data-player-action="playAudio" 
@@ -22,9 +10,8 @@
                {% elif sound|is_format_available:'mp3' %}
                / <a href="{{ sound|format_url:'mp3' }}" download>Télécharger</a>
                {% endif %}
-               {% endif %}
 
-               <button class="icons icon-pause"
+               <button class="icons icon-play-sign"
                        title="{% trans "Pause" %}"
                        data-player-audio="Audio-{{ sound.file.url|slugify }}" 
                        data-player-action="pauseSounds"