Commit 598b65fa authored by Simon Daron's avatar Simon Daron
Browse files

Add paniktag for sound

parent 6949d600
......@@ -10,6 +10,12 @@ register = template.Library()
def zip_lists(a, b):
return zip(a, b)
@register.inclusion_tag('includes/audio.html', takes_context=True)
def audio(sound=None):
return {
'sound': sound
}
@register.inclusion_tag('episodes/resume.html', takes_context=True)
def episode_resume(context, date=None):
return {
......
......@@ -19,7 +19,7 @@
{% if NewsItem.slug == newsImaged.0.slug %}
{% news_inline content=NewsItem klass="special" logo="large" %}
{% elif NewsItem.slug == newsImaged.1.slug or NewsItem.slug == newsImaged.2.slug%}
{% news_inline content=NewsItem klass="special" logo="medium"%}
{% news_inline content=NewsItem klass="special" logo="medium" %}
{% else %}
{% endif %}
</li>
......
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