Commit 3271dcca authored by Simon Daron's avatar Simon Daron
Browse files

Adding emission title for standalone display of inline emissions

parent 87ed114e
......@@ -17,17 +17,17 @@ def audio(sound=None):
}
@register.inclusion_tag('episodes/resume.html', takes_context=True)
def episode_resume(context, date=None):
def episode_resume(context, date=None, klass=None):
return {
'emission': context.get('emission'),
'class': klass,
'episode': context.get('episode'),
'date': date,
}
@register.inclusion_tag('episodes/inline.html', takes_context=True)
def episode_inline(context, date=None):
def episode_inline(context, date=None, klass=None):
return {
'emission': context.get('emission'),
'class': klass,
'episode': context.get('episode'),
'date': date,
}
......
......@@ -162,9 +162,9 @@ body{
overflow:hidden;
}
#metaNav ul li a{
display:inline-block;
padding:0.2em;
display:inline-block !important;
color:white;
letter-spacing:1px;
}
#metaNav *:focus, #metaNav .active{
color:black;
......
......@@ -24,6 +24,9 @@
{% endif %}
<div class="content">
<a class="block" href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">
{% if class = "standalone" %}
<h5 class="title ellipsis smooth">{{ episode.emission.title }}</h5>
{% endif %}
<h5 class="title ellipsis">{{ episode.title }}</h5>
{% if episode.description %}
<div class="description ellipsis">
......
......@@ -6,7 +6,7 @@
<ul class="custom columns">
{% for episode in episodes %}
<li class="item">
{% episode_inline %}
{% episode_inline klass="standalone"%}
</li>
{% endfor %}
</ul>
......
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