Mercurial > sat_legacy_website
diff templates/sat_website/gallery.html @ 92:7a79cb5ed43b
add subtitles in video metadata and <track /> elements
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 16 Jun 2015 20:31:16 +0200 |
parents | 2de2c50a796d |
children |
line wrap: on
line diff
--- a/templates/sat_website/gallery.html Tue Jun 16 17:36:08 2015 +0200 +++ b/templates/sat_website/gallery.html Tue Jun 16 20:31:16 2015 +0200 @@ -78,10 +78,7 @@ {% for entry in media %} <div class="item{% if not forloop.counter0 %} active{% endif %}"> {% if entry.poster %} - <video class="img-responsive" width="640" height="400" poster="{{ entry.poster }}" controls preload="none"> - <source src="{{ entry.paths|select_video_path }}" type='video/webm; codecs="vp8.0, vorbis"'> - {% blocktrans with firefox="<a href=\"http://www.mozilla.org/\">Firefox</a>" %}Your browser doesn't manage the « video » tag, you should update, e.g. with the last {{ firefox }}.{% endblocktrans %} - </video> + {% include "sat_website/video.html" with entry=entry style="img-responsive" width=640 height=400 %} {% else %} <img class="img-responsive" src="{% static entry.path %}"> {% endif %}