]> git.parisson.com Git - telemeta.git/commitdiff
no player for collections
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 13 Jun 2016 13:04:50 +0000 (15:04 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 13 Jun 2016 13:04:50 +0000 (15:04 +0200)
telemeta/templates/telemeta/base.html
telemeta/templates/telemeta/lists.html

index 0cba9d09df2e6a3bb47495c2c8a0126840e6fcbe..b4133cd43d62076630ab8a72ab38fb9601db5876 100644 (file)
@@ -3,6 +3,7 @@
 {% load telemeta_tags %}
 {% load bootstrap3 %}
 {% settings_value 'INSTALLED_APPS' as INSTALLED_APPS %}
+{% settings_value 'DEBUG' as DEBUG %}
 {% if 'googletools' in INSTALLED_APPS %}
     {% load googletools %}
 {% endif %}
index c2cba372096396fe5b940bfdfb1d723a6b771ce1..0c2a6ce209adbf019e51ffdf8c6b22fe42587aad 100644 (file)
             {% for resource in playlist.resources %}
             <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
                 <td align="center" style="vertical-align:middle;">
-                    {% if resource.element.file or resource.element.has_mediafile %}
-                    <a href="#" id="{% url 'telemeta-item-export' resource.element.public_id 'mp3' %}" onclick="playlistUtils.changeGlyph(this.id)" class="glyphicon glyphicon-play" style="font-size: 1.3em;text-decoration: none"><p style="opacity:0;font-size:0">d</p></a>
+                    {% if resource.element.file %}
+                    <a href="#" onclick="playlistUtils.changeGlyph(this.id)" class="glyphicon glyphicon-play" style="font-size: 1.3em;text-decoration: none"><p style="opacity:0;font-size:0">d</p></a>
                     {% endif %}
                 </td>
                 <td style="max-width:200px">