Mercurial > sat_legacy_website
changeset 84:d59bc45f83ca
there's a problem with replace_language_tag filter, don't use it for now, link directly to French video + use webm instead of ogv
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 15 Jun 2015 16:54:06 +0200 |
parents | 3d04a955bec4 |
children | 3189fd4a15fa |
files | sat_website/screenshots.py templates/sat_website/gallery.html templates/sat_website/membership.html |
diffstat | 3 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_website/screenshots.py Mon Jun 15 13:52:10 2015 +0200 +++ b/sat_website/screenshots.py Mon Jun 15 16:54:06 2015 +0200 @@ -35,11 +35,10 @@ screenshots = [ - # will use replace_language_tag filter for replacing {{LANGUAGE_CODE}} - VideoDesc(video + "libervia_adhesion_2015_{{LANGUAGE_CODE}}.ogv", + VideoDesc(video + "libervia_adhesion_2015_fr.webm", _(u"Membership campaign for Libervia"), video + "posters/libervia_adhesion_2015.png", - {_(u"version"): "0.5", _(u"year"): "2015", _(u"language"): "{{LANGUAGE_CODE}}"}), + {_(u"version"): "0.5", _(u"year"): "2015", _(u"language"): "fr"}), ImageDesc("images/screenshots/0.5/overview_libervia.png", _(u"Overview"), {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
--- a/templates/sat_website/gallery.html Mon Jun 15 13:52:10 2015 +0200 +++ b/templates/sat_website/gallery.html Mon Jun 15 16:54:06 2015 +0200 @@ -36,7 +36,7 @@ {% for screenshot in row %} <div class="col-md-4"> {% if screenshot.poster %} - <video index="{{ forloop.counter0 }}" class="thumbnail img-responsive" width="640" height="400" poster="{{ screenshot.poster }}" controls="controls" src="{{ screenshot.path|replace_language_tag }}" preload="none"> + <video index="{{ forloop.counter0 }}" class="thumbnail img-responsive" width="640" height="400" poster="{{ screenshot.poster }}" controls="controls" src="{{ screenshot.path }}" preload="none"> {% 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 %} @@ -78,7 +78,7 @@ {% for screenshot in screenshots %} <div class="item{% if not forloop.counter0 %} active{% endif %}"> {% if screenshot.poster %} - <video class="img-responsive" width="640" height="400" poster="{{ screenshot.poster }}" controls="controls" src="{{ screenshot.path|replace_language_tag }}" preload="none"> + <video class="img-responsive" width="640" height="400" poster="{{ screenshot.poster }}" controls="controls" src="{{ screenshot.path }}" preload="none"> {% 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 %}
--- a/templates/sat_website/membership.html Mon Jun 15 13:52:10 2015 +0200 +++ b/templates/sat_website/membership.html Mon Jun 15 16:54:06 2015 +0200 @@ -30,7 +30,7 @@ <div class="row"> <div class="info text-center"> - <video class="video-campaign" poster="http://ftp.goffi.org/media/video/posters/libervia_adhesion_2015.png" controls="controls" src="http://ftp.goffi.org/media/video/libervia_adhesion_2015_{{ LANGUAGE_CODE }}.ogv"> + <video class="video-campaign" poster="http://ftp.goffi.org/media/video/posters/libervia_adhesion_2015.png" controls="controls" src="http://ftp.goffi.org/media/video/libervia_adhesion_2015_fr.webm"> Votre butineur ne gère pas la balise « video », vous devriez le mettre à jour, par ex. avec le dernier <a href="http://www.mozilla.org/">Firefox</a> </video> </div>