Mercurial > sat_legacy_website
comparison 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 |
comparison
equal
deleted
inserted
replaced
89:4b4a5d7602f8 | 90:5de2a3dd4e67 |
---|---|
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.path }}" type='video/webm; codecs="vp8.0, vorbis"'> | 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 %} | 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 %} |
42 </video> | 42 </video> |
43 {% else %} | 43 {% else %} |
44 <img index="{{ forloop.counter0 }}" class="thumbnail img-responsive" src="{% static entry.path %}"> | 44 <img index="{{ forloop.counter0 }}" class="thumbnail img-responsive" src="{% static entry.path %}"> |
45 {% endif %} | 45 {% endif %} |
78 <div class="carousel-inner" role="listbox"> | 78 <div class="carousel-inner" role="listbox"> |
79 {% for entry in media %} | 79 {% for entry in media %} |
80 <div class="item{% if not forloop.counter0 %} active{% endif %}"> | 80 <div class="item{% if not forloop.counter0 %} active{% endif %}"> |
81 {% if entry.poster %} | 81 {% if entry.poster %} |
82 <video class="img-responsive" width="640" height="400" poster="{{ entry.poster }}" controls preload="none"> | 82 <video class="img-responsive" width="640" height="400" poster="{{ entry.poster }}" controls preload="none"> |
83 <source src="{{ entry.path }}" type='video/webm; codecs="vp8.0, vorbis"'> | 83 <source src="{{ entry.paths|select_video_path }}" type='video/webm; codecs="vp8.0, vorbis"'> |
84 {% 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 {% 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 %} |
85 </video> | 85 </video> |
86 {% else %} | 86 {% else %} |
87 <img class="img-responsive" src="{% static entry.path %}"> | 87 <img class="img-responsive" src="{% static entry.path %}"> |
88 {% endif %} | 88 {% endif %} |
89 <div class="carousel-caption"> | 89 <div class="carousel-caption"> |
90 {{ entry.description }}<br/> | 90 {{ entry.description }}<br/> |
91 {{ entry.data|metadata }} | 91 {{ entry|metadata }} |
92 </div> | 92 </div> |
93 </div> | 93 </div> |
94 {% endfor %} | 94 {% endfor %} |
95 </div> | 95 </div> |
96 {% if media|length > 1 %} | 96 {% if media|length > 1 %} |