]> git.0d.be Git - panikweb.git/commitdiff
remove redundant check for sound files
authorFrédéric Péters <fpeters@0d.be>
Fri, 13 Sep 2013 12:13:44 +0000 (14:13 +0200)
committerFrédéric Péters <fpeters@0d.be>
Fri, 13 Sep 2013 12:13:44 +0000 (14:13 +0200)
panikweb_templates/templates/includes/audio.html

index 76ebe32d10044b99f74212d589a67b9e3418024c..720e4b0f0d15dd1798ba16def4ee42c9d708de7a 100644 (file)
                        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'