Commit 03aa5f47 authored by Simon Daron's avatar Simon Daron
Browse files

Preparing for multiple audios

parent bb38dac0
...@@ -190,15 +190,15 @@ class Get(TemplateView): ...@@ -190,15 +190,15 @@ class Get(TemplateView):
get = Get.as_view() get = Get.as_view()
class Player(TemplateView): class Listen(TemplateView):
template_name = 'player.html' template_name = 'listen.html'
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(Player, self).get_context_data(**kwargs) context = super(Listen, self).get_context_data(**kwargs)
context['player'] = audioPlayer() context['player'] = audioPlayer()
return context return context
player = Player.as_view() listen = Listen.as_view()
class audioPlayer: class audioPlayer:
def __init__(self): def __init__(self):
......
...@@ -29,7 +29,8 @@ img {max-width:100%; ...@@ -29,7 +29,8 @@ img {max-width:100%;
h1, h2, h3, h4, h5{ h1, h2, h3, h4, h5{
font-family: 'RegloBold'; font-family: 'RegloBold';
} }
h4, h5{ h1, h2{
text-transform: uppercase;
} }
h1 { font-size: 6em;} h1 { font-size: 6em;}
h2 { font-size: 4em;} h2 { font-size: 4em;}
......
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
font-size: 0.9em; font-size: 0.9em;
} }
h1.title{ h1.title{
text-transform: uppercase;
} }
.date, .dateBloc { .date, .dateBloc {
font-family: "Reglo"; font-family: "Reglo";
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</nav> </nav>
--> -->
<header class="mainHeader"> <header class="mainHeader">
<h1 class="squashed title">{{ emission.title }}</h1> <h2 class="squashed title">{{ emission.title }}</h2>
</header> </header>
<div class="metas"> <div class="metas">
{% if schedules %} {% if schedules %}
......
<!--
<li>{{ episode.first_diffusion|date:"d E o H:i"|lower }}
<br/>   <a href="{{ episode.slug }}/">{{ episode.title }}</a>
{% if episode.has_sound %}<span class="icon-music"/>{%endif%}
</li>
-->
<div class="episode resume episode-resume cf"> <div class="episode resume episode-resume cf">
<div class="date dateBloc"> <div class="date dateBloc">
<span class="day"> <span class="day">
......
{% if src %}
<audio
id="Audio-{{ id }}"
{% if preload %}preload="{{ preload }}"{% endif%}
class="hidden {{ class }}"
src="{{ src }}"
{% if controls %}controls="{{ controls }}"{% endif%}
></audio>
{% endif%}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment