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

index 91973b13f9dc9405052727c0c525d342dee15562..adc96905799887258c848da8ec29648b64e38c2f 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 91973b13f9dc9405052727c0c525d342dee15562
+Subproject commit adc96905799887258c848da8ec29648b64e38c2f
index 34ed347c7bd273c48461609601b8b4f0c7750bc6..b7600f79259bd7733da69b9853b336dbb5d69fd6 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>
-        <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>
-        {% if "video" in mime_type %}
-        <p><b>{% trans "Share the video player" %}</b></p>
-         <input class="share" name="share_video_player" value="<iframe width='640' height='480' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='{{ site }}{% url "telemeta-item-video-player" item.public_id 640 480 %}'></iframe>" title="{% trans "Share the video player" %}" onclick="this.focus();this.select()" size="68">
+        {% if item %}
+            <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>
+            {% if "video" in mime_type %}
+            <p><b>{% trans "Share the video player" %}</b></p>
+             <input class="share" name="share_video_player" value="<iframe width='640' height='480' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='{{ site }}{% url "telemeta-item-video-player" item.public_id 640 480 %}'></iframe>" title="{% trans "Share the video player" %}" onclick="this.focus();this.select()" size="68">
+            {% endif %}
         {% endif %}
        </div>
       <div class="modal-footer">