Mercurial > sat_legacy_website
annotate templates/sat_website/video.html @ 112:b82eb3264142
updated association page to adapt to the coming campaing
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 17 Oct 2015 17:52:43 +0200 |
parents | 7a79cb5ed43b |
children |
rev | line source |
---|---|
92
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
1 {% comment %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
2 SàT website: Salut à Toi's presentation website |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
3 Copyright (C) 2012 Jérôme Poisson (goffi@goffi.org) |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
4 |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
5 This file is part of SàT website. |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
6 |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
7 SàT website is free software: you can redistribute it and/or modify |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
8 it under the terms of the GNU Affero General Public License as published by |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
9 the Free Software Foundation, either version 3 of the License, or |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
10 (at your option) any later version. |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
11 |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
12 Foobar is distributed in the hope that it will be useful, |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
15 GNU Affero General Public License for more details. |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
16 |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
17 You should have received a copy of the GNU Affero General Public License |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
18 along with Foobar. If not, see <http://www.gnu.org/licenses/>. |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
19 {% endcomment %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
20 |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
21 {% load i18n %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
22 {% load staticfiles %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
23 {% load utils %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
24 {% get_current_language as LANGUAGE_CODE %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
25 |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
26 <video class="{{style}}" |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
27 {% if width %}width="{{width}}"{% endif %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
28 {% if width %}height="{{height}}"{% endif %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
29 poster="{{ entry.poster }}" controls preload="none"> |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
30 <source src="{{ entry.paths|select_video_path }}" type='video/webm; codecs="vp8.0, vorbis"'> |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
31 {% for srclang, path in entry.subtitles.items %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
32 {% get_language_info for srclang as lang %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
33 <track label="{{lang.name_local}}" src="{{path}}" kind="subtitles" srclang="{{srclang}}" {% if srclang == LANGUAGE_CODE %} default{% endif %} /> |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
34 {% endfor %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
35 {% 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 %} |
7a79cb5ed43b
add subtitles in video metadata and <track /> elements
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
36 </video> |