diff sat_website/screenshots.py @ 83:3d04a955bec4

add membership campaign's video (for now ogv, will eventually change to webm)
author souliane <souliane@mailoo.org>
date Mon, 15 Jun 2015 13:52:10 +0200
parents e44ec327ba4c
children d59bc45f83ca
line wrap: on
line diff
--- a/sat_website/screenshots.py	Wed Jun 10 08:23:01 2015 +0200
+++ b/sat_website/screenshots.py	Mon Jun 15 13:52:10 2015 +0200
@@ -28,11 +28,19 @@
 VideoDesc = namedtuple("VideoDesc", "path description poster data")
 
 screencasts = os.path.join(settings.MEDIA_EXTERNAL_URL, "screencasts") + "/"
+video = os.path.join(settings.MEDIA_EXTERNAL_URL, "video") + "/"
 
 
 #list the pictures
 
 screenshots = [
+
+    # will use replace_language_tag filter for replacing {{LANGUAGE_CODE}}
+    VideoDesc(video + "libervia_adhesion_2015_{{LANGUAGE_CODE}}.ogv",
+              _(u"Membership campaign for Libervia"),
+              video + "posters/libervia_adhesion_2015.png",
+              {_(u"version"): "0.5", _(u"year"): "2015", _(u"language"): "{{LANGUAGE_CODE}}"}),
+
     ImageDesc("images/screenshots/0.5/overview_libervia.png", _(u"Overview"),
               {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
     ImageDesc("images/screenshots/0.5/http_unsecure_warning.png", _(u"Optional security check"),