Mercurial > sat_legacy_website
diff templates/sat_website/gallery.html @ 90:5de2a3dd4e67
change VideoDesc attribute path to paths, a dict where you can specify a different path for each language
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 16 Jun 2015 17:23:15 +0200 |
parents | 4b4a5d7602f8 |
children | 2de2c50a796d |
line wrap: on
line diff
--- a/templates/sat_website/gallery.html Tue Jun 16 12:35:32 2015 +0200 +++ b/templates/sat_website/gallery.html Tue Jun 16 17:23:15 2015 +0200 @@ -37,7 +37,7 @@ <div class="col-md-4"> {% if entry.poster %} <video index="{{ forloop.counter0 }}" class="thumbnail img-responsive" width="640" height="400" poster="{{ entry.poster }}" controls preload="none"> - <source src="{{ entry.path }}" type='video/webm; codecs="vp8.0, vorbis"'> + <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> {% else %} @@ -80,7 +80,7 @@ <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.path }}" type='video/webm; codecs="vp8.0, vorbis"'> + <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> {% else %} @@ -88,7 +88,7 @@ {% endif %} <div class="carousel-caption"> {{ entry.description }}<br/> - {{ entry.data|metadata }} + {{ entry|metadata }} </div> </div> {% endfor %}