comparison sat_website/media.py @ 89:4b4a5d7602f8

rename screenshots to media, since not only screenshots but also videos are listed
author souliane <souliane@mailoo.org>
date Tue, 16 Jun 2015 12:35:32 +0200
parents sat_website/screenshots.py@d59bc45f83ca
children 5de2a3dd4e67
comparison
equal deleted inserted replaced
88:f91363b1048c 89:4b4a5d7602f8
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 """
4 SàT website: Salut à Toi's presentation website
5 Copyright (C) 2012 Jérôme Poisson (goffi@goffi.org)
6
7 This file is part of SàT website.
8
9 SàT website is free software: you can redistribute it and/or modify
10 it under the terms of the GNU Affero General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 Foobar is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Affero General Public License for more details.
18
19 You should have received a copy of the GNU Affero General Public License
20 along with Foobar. If not, see <http://www.gnu.org/licenses/>.
21 """
22 from django.utils.translation import ugettext_lazy as _
23 from django.conf import settings
24 from collections import namedtuple
25 import os.path
26
27 ImageDesc = namedtuple("ImageDesc", "path description data")
28 VideoDesc = namedtuple("VideoDesc", "path description poster data")
29
30 screencasts = os.path.join(settings.MEDIA_EXTERNAL_URL, "screencasts") + "/"
31 video = os.path.join(settings.MEDIA_EXTERNAL_URL, "video") + "/"
32
33
34 #list the pictures
35
36 media = [
37
38 VideoDesc(video + "libervia_adhesion_2015_fr.webm",
39 _(u"Membership campaign for Libervia"),
40 video + "posters/libervia_adhesion_2015.png",
41 {_(u"version"): "0.5", _(u"year"): "2015", _(u"language"): "fr"}),
42
43 ImageDesc("images/screenshots/0.5/overview_libervia.png", _(u"Overview"),
44 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
45 ImageDesc("images/screenshots/0.5/http_unsecure_warning.png", _(u"Optional security check"),
46 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
47 ImageDesc("images/screenshots/0.4/sat_wysiwyg.png", _(u"Rich text editor"),
48 {_(u"frontend"): "libervia", _(u"version"): "0.4", _(u"year"): "2014"}),
49 VideoDesc(screencasts + "présentation_SàT_5_radio_collective.webm", _(u"Demo of the new Libervia UI, and of the collective radio feature"), screencasts + "posters/radiocol.jpg",
50 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2012", _(u"language"): "fr"}),
51 ImageDesc("images/screenshots/libervia/libervia_login.png", _(u"Libervia's login page"),
52 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}),
53 ImageDesc("images/screenshots/libervia/libervia_discussions.png", _(u"Libervia's main view"),
54 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}),
55 ImageDesc("images/screenshots/wix/wix_tarot.png", _(u"Wix showing a french Tarot play"),
56 {_(u"frontend"): "wix", _(u"version"): "0.2", _(u"year"): "2011"}),
57 VideoDesc(screencasts + "présentation_SàT_3.webm", _(u"This video focuses on Libervia. The UI is really outdated, but we can see some features"), screencasts + "posters/présentation_SàT_3.jpg",
58 {_(u"frontend"): "libervia", _(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}),
59 ]
60
61 media_tech = [
62 ImageDesc("images/screenshots/0.5/adhoc_administration.png", _(u"Server administration from the web frontend Libervia."),
63 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
64 VideoDesc(screencasts + "présentation_SàT_7_télécommande_universelle.webm", _(u"Use ad-hoc commands to control a VLC player from Libervia"), screencasts + "posters/présentation_SàT_7_télécommande_universelle.png",
65 {_(u"version"): "0.4", _(u"year"): "2014", _(u"language"): "fr"}),
66 VideoDesc(screencasts + "présentation_SàT_6_export_commande.webm", _(u"Exporting a command: an FTP client is exported to a Gajim contact"), screencasts + "posters/présentation_SàT_6_export_commande.jpg",
67 {_(u"version"): "0.4D", _(u"year"): "2013", _(u"language"): "fr"}),
68 VideoDesc(screencasts + "présentation_SàT_4_copie_et_pipe.webm", _(u"How to copy and pipe streams over XMPP"), screencasts + "posters/présentation_SàT_4.png",
69 {_(u"version"): "0.3D", _(u"year"): "2011", _(u"language"): "fr"}),
70 ImageDesc("images/screenshots/jp/jp.png", _(u"Cowsay sent in conversation through jp"),
71 {_(u"version"): "0.2", _(u"year"): "2011"}),
72 ImageDesc("images/screenshots/primitivus/primitivus_tarot.png", _(u"Primitivus showing a french Tarot play"),
73 {_(u"frontend"): "primitivus", _(u"version"): "0.2", _(u"year"): "2011"}),
74 VideoDesc(screencasts + "présentation_SàT_2.webm", _(u"This video shows french Tarot game, and how to use Thunderbird with SàT"), screencasts + "posters/présentation_SàT_2.jpg",
75 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}),
76 VideoDesc(screencasts + "présentation_SàT.webm", _(u"The first video shows wix, primitivus and jp"), screencasts + "posters/présentation_SàT.jpg",
77 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}),
78 ]
79
80
81
82
83
84