comparison templates/sat_website/gallery.html @ 91:2de2c50a796d

no need to specify the video path on the first carousel, it's only used as a button
author souliane <souliane@mailoo.org>
date Tue, 16 Jun 2015 17:36:08 +0200
parents 5de2a3dd4e67
children 7a79cb5ed43b
comparison
equal deleted inserted replaced
90:5de2a3dd4e67 91:2de2c50a796d
35 <div class="item{% if not forloop.counter0 %} active{% endif %}"> 35 <div class="item{% if not forloop.counter0 %} active{% endif %}">
36 {% for entry in row %} 36 {% for entry in row %}
37 <div class="col-md-4"> 37 <div class="col-md-4">
38 {% if entry.poster %} 38 {% if entry.poster %}
39 <video index="{{ forloop.counter0 }}" class="thumbnail img-responsive" width="640" height="400" poster="{{ entry.poster }}" controls preload="none"> 39 <video index="{{ forloop.counter0 }}" class="thumbnail img-responsive" width="640" height="400" poster="{{ entry.poster }}" controls preload="none">
40 <source src="{{ entry.paths|select_video_path }}" type='video/webm; codecs="vp8.0, vorbis"'>
41 {% 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 %} 40 {% 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 %}
42 </video> 41 </video>
43 {% else %} 42 {% else %}
44 <img index="{{ forloop.counter0 }}" class="thumbnail img-responsive" src="{% static entry.path %}"> 43 <img index="{{ forloop.counter0 }}" class="thumbnail img-responsive" src="{% static entry.path %}">
45 {% endif %} 44 {% endif %}