Fixed Copyright Headers
[mediagoblin.git] / mediagoblin / templates / mediagoblin / media_displays / audio.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #}
18
19 {% extends 'mediagoblin/user_pages/media.html' %}
20
21 {% block mediagoblin_head %}
22 {{ super() }}
23 <link rel="stylesheet" type="text/css" href="{{ request.staticdirect('/css/audio.css') }}" />
24 <script type="text/javascript" src="{{ request.staticdirect(
25 '/js/audio.js') }}"></script>
26 {% endblock %}
27
28 {% block mediagoblin_media %}
29 <div class="media_other_container">
30 <div class="audio-media">
31 {% if 'spectrogram' in media.media_files %}
32 <div class="audio-spectrogram">
33 <img src="{{ request.app.public_store.file_url(
34 media.media_files.spectrogram) }}"
35 alt="Spectrogram" />
36 </div>
37 {% endif %}
38 <audio class="audio-player" controls="controls"
39 preload="metadata">
40 <source src="{{ request.app.public_store.file_url(
41 media.media_files.webm_audio) }}" type="audio/webm; codecs=vorbis" />
42 <div class="no_html5">
43 {%- trans -%}Sorry, this audio will not work because
44 your web browser does not support HTML5
45 audio.{%- endtrans -%}<br/>
46 {%- trans -%}You can get a modern web browser that
47 can play the audio at <a href="http://getfirefox.com">
48 http://getfirefox.com</a>!{%- endtrans -%}
49 </div>
50 </audio>
51 </div>
52 </div>
53 {% endblock %}
54
55 {% block mediagoblin_sidebar %}
56 <h3>{% trans %}Download{% endtrans %}</h3>
57 <ul>
58 {% if 'original' in media.media_files %}
59 <li><a href="{{ request.app.public_store.file_url(
60 media.media_files.original) }}">{% trans %}Original file{% endtrans %}</a>
61 {% endif %}
62 <li><a href="{{ request.app.public_store.file_url(
63 media.media_files.webm_audio) }}">{% trans %}WebM file (Vorbis codec){% endtrans %}</a>
64 </ul>
65 {% endblock %}