]> git.parisson.com Git - telemeta.git/commitdiff
fix item.file
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 21 Dec 2015 23:20:19 +0000 (00:20 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 21 Dec 2015 23:20:19 +0000 (00:20 +0100)
telemeta/templates/telemeta/mediaitem_detail.html

index b7600f79259bd7733da69b9853b336dbb5d69fd6..467eaabdcce0567d7f35403cf83897e3181639cf 100644 (file)
         <p><b>{% trans "Share the link"%}</b></p>
          <input class="share" name="share_url" value="{{ site }}{% url "telemeta-item-detail" item.public_id %}" title="{% trans "Share the link"%}" onclick="this.focus();this.select()" size="68">
         <br><br>
-        {% if item %}
+        {% if item.file %}
             <p><b>{% trans "Share the audio player" %}</b></p>
              <input class="share" name="share_audio_player" value="<iframe width='361' height='215' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='{{ site }}{% url "telemeta-item-player" item.public_id 346 130 %}'></iframe>" title="{% trans "Share the audio player" %}" onclick="this.focus();this.select()" size="68">
             <br><br>