Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
03aa5f47
Commit
03aa5f47
authored
Aug 22, 2013
by
Simon Daron
Browse files
Preparing for multiple audios
parent
bb38dac0
Changes
7
Show whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
03aa5f47
...
...
@@ -190,15 +190,15 @@ class Get(TemplateView):
get
=
Get
.
as_view
()
class
Player
(
TemplateView
):
template_name
=
'
player
.html'
class
Listen
(
TemplateView
):
template_name
=
'
listen
.html'
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
()
return
context
player
=
Player
.
as_view
()
listen
=
Listen
.
as_view
()
class
audioPlayer
:
def
__init__
(
self
):
...
...
panikweb_templates/static/css/general.css
View file @
03aa5f47
...
...
@@ -29,7 +29,8 @@ img {max-width:100%;
h1
,
h2
,
h3
,
h4
,
h5
{
font-family
:
'RegloBold'
;
}
h4
,
h5
{
h1
,
h2
{
text-transform
:
uppercase
;
}
h1
{
font-size
:
6em
;}
h2
{
font-size
:
4em
;}
...
...
panikweb_templates/static/css/specifics.css
View file @
03aa5f47
...
...
@@ -62,7 +62,6 @@
font-size
:
0.9em
;
}
h1
.title
{
text-transform
:
uppercase
;
}
.date
,
.dateBloc
{
font-family
:
"Reglo"
;
...
...
panikweb_templates/templates/emissions/detail.html
View file @
03aa5f47
...
...
@@ -9,7 +9,7 @@
</nav>
-->
<header
class=
"mainHeader"
>
<h
1
class=
"squashed title"
>
{{ emission.title }}
</h
1
>
<h
2
class=
"squashed title"
>
{{ emission.title }}
</h
2
>
</header>
<div
class=
"metas"
>
{% if schedules %}
...
...
panikweb_templates/templates/episodes/resume.html
View file @
03aa5f47
<!--
<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=
"date dateBloc"
>
<span
class=
"day"
>
...
...
panikweb_templates/templates/includes/audio.html
0 → 100644
View file @
03aa5f47
{% if src %}
<audio
id=
"Audio-{{ id }}"
{%
if
preload
%}
preload=
"{{ preload }}"
{%
endif
%}
class=
"hidden {{ class }}"
src=
"{{ src }}"
{%
if
controls
%}
controls=
"{{ controls }}"
{%
endif
%}
></audio>
{% endif%}
panikweb_templates/templates/
player
.html
→
panikweb_templates/templates/
listen
.html
View file @
03aa5f47
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment