]> git.parisson.com Git - telemeta.git/commitdiff
fix no video sharing
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 21 Dec 2015 23:10:30 +0000 (00:10 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 21 Dec 2015 23:11:30 +0000 (00:11 +0100)
telemeta/templates/telemeta/mediaitem_detail.html

index 3ce287fc36c09f610bd56c8086a415c5ee1c6377..34ed347c7bd273c48461609601b8b4f0c7750bc6 100644 (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>
+        {% 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 %}
        </div>
       <div class="modal-footer">
-        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
+        <button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Close" %}</button>
       </div>
     </div>
   </div>