comparison templates/sat_website/gallery.html @ 58:746e53efc188

allow large media files (screencasts) to be stored on an external server
author souliane <souliane@mailoo.org>
date Thu, 14 May 2015 23:37:56 +0200
parents d54f2f09a73a
children 3d04a955bec4
comparison
equal deleted inserted replaced
57:bfa8009f0769 58:746e53efc188
34 {% for row in screenshots|buffer:9 %} 34 {% for row in screenshots|buffer:9 %}
35 <div class="item{% if not forloop.counter0 %} active{% endif %}"> 35 <div class="item{% if not forloop.counter0 %} active{% endif %}">
36 {% for screenshot in row %} 36 {% for screenshot in row %}
37 <div class="col-md-4"> 37 <div class="col-md-4">
38 {% if screenshot.poster %} 38 {% if screenshot.poster %}
39 <video index="{{ forloop.counter0 }}" class="thumbnail img-responsive" width="640" height="400" poster="{% static screenshot.poster %}" controls="controls" src="{% static screenshot.path %}" preload="none"> 39 <video index="{{ forloop.counter0 }}" class="thumbnail img-responsive" width="640" height="400" poster="{{ screenshot.poster }}" controls="controls" src="{{ screenshot.path }}" preload="none">
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 %} 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 %}
41 </video> 41 </video>
42 {% else %} 42 {% else %}
43 <img index="{{ forloop.counter0 }}" class="thumbnail img-responsive" src="{% static screenshot.path %}"> 43 <img index="{{ forloop.counter0 }}" class="thumbnail img-responsive" src="{% static screenshot.path %}">
44 {% endif %} 44 {% endif %}
76 {% endif %} 76 {% endif %}
77 <div class="carousel-inner" role="listbox"> 77 <div class="carousel-inner" role="listbox">
78 {% for screenshot in screenshots %} 78 {% for screenshot in screenshots %}
79 <div class="item{% if not forloop.counter0 %} active{% endif %}"> 79 <div class="item{% if not forloop.counter0 %} active{% endif %}">
80 {% if screenshot.poster %} 80 {% if screenshot.poster %}
81 <video class="img-responsive" width="640" height="400" poster="{% static screenshot.poster %}" controls="controls" src="{% static screenshot.path %}" preload="none"> 81 <video class="img-responsive" width="640" height="400" poster="{{ screenshot.poster }}" controls="controls" src="{{ screenshot.path }}" preload="none">
82 {% 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 %} 82 {% 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 %}
83 </video> 83 </video>
84 {% else %} 84 {% else %}
85 <img class="img-responsive" src="{% static screenshot.path %}"> 85 <img class="img-responsive" src="{% static screenshot.path %}">
86 {% endif %} 86 {% endif %}