Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
8c80da9c
Commit
8c80da9c
authored
Aug 27, 2013
by
Simon Daron
Browse files
Use panik tag for sounds in episodes
parent
598b65fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
panikweb/paniktags/templatetags/paniktags.py
View file @
8c80da9c
...
...
@@ -10,7 +10,7 @@ register = template.Library()
def
zip_lists
(
a
,
b
):
return
zip
(
a
,
b
)
@
register
.
inclusion_tag
(
'includes/audio.html'
,
takes_context
=
True
)
@
register
.
inclusion_tag
(
'includes/audio.html'
)
def
audio
(
sound
=
None
):
return
{
'sound'
:
sound
...
...
panikweb_templates/templates/episodes/inline.html
View file @
8c80da9c
{% load thumbnails %}
{% load paniktags %}
<div
class=
"episode episode-inline inline cf"
>
<div
class=
"date dateBloc left small"
>
<span
class=
"day"
>
...
...
@@ -43,7 +44,7 @@
{% endif %}
{% if episode.main_sound %}
<div
class=
"sound"
>
{%
include "includes/audio.html" with
sound=episode.main_sound %}
{%
audio
sound=episode.main_sound %}
</div>
{% endif %}
</div>
...
...
panikweb_templates/templates/episodes/resume.html
View file @
8c80da9c
{% load soundfiles %}
{% load paniktags %}
<div
class=
"episode resume episode-resume cf"
>
<div
class=
"date dateBloc"
>
<span
class=
"day"
>
...
...
@@ -56,7 +57,7 @@
</div>
{% if episode.main_sound %}
<div
class=
"sound"
>
{%
include "includes/audio.html" with
sound=episode.main_sound %}
{%
audio
sound=episode.main_sound %}
</div>
{% endif %}
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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