Mercurial > sat_legacy_website
comparison 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 |
comparison
equal
deleted
inserted
replaced
91:2de2c50a796d | 92:7a79cb5ed43b |
---|---|
76 {% endif %} | 76 {% endif %} |
77 <div class="carousel-inner" role="listbox"> | 77 <div class="carousel-inner" role="listbox"> |
78 {% for entry in media %} | 78 {% for entry in media %} |
79 <div class="item{% if not forloop.counter0 %} active{% endif %}"> | 79 <div class="item{% if not forloop.counter0 %} active{% endif %}"> |
80 {% if entry.poster %} | 80 {% if entry.poster %} |
81 <video class="img-responsive" width="640" height="400" poster="{{ entry.poster }}" controls preload="none"> | 81 {% include "sat_website/video.html" with entry=entry style="img-responsive" width=640 height=400 %} |
82 <source src="{{ entry.paths|select_video_path }}" type='video/webm; codecs="vp8.0, vorbis"'> | |
83 {% 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 %} | |
84 </video> | |
85 {% else %} | 82 {% else %} |
86 <img class="img-responsive" src="{% static entry.path %}"> | 83 <img class="img-responsive" src="{% static entry.path %}"> |
87 {% endif %} | 84 {% endif %} |
88 <div class="carousel-caption"> | 85 <div class="carousel-caption"> |
89 {{ entry.description }}<br/> | 86 {{ entry.description }}<br/> |