Commit 964b0996 authored by fred's avatar fred
Browse files

display nonstop periods in program

parent b766c657
......@@ -621,3 +621,8 @@ body { font-size: 16px;}
@media (min-width: 1000px) {
body #All{ font-size: 100%; }
}
div.program span.nonstop {
font-size: 80%;
color:#CCC;
}
......@@ -17,8 +17,8 @@
{% if day.cells %}
{% for cell in day.cells %}
<li class="ellipsis" >
<strong>{{ cell.datetime|date:"H:i" }}</strong>&nbsp;-&nbsp;
{% if cell.episode %}
<strong>{{ cell.datetime|date:"H:i" }}</strong>&nbsp;-&nbsp;
<a href="{% url 'episode-view' emission_slug=cell.episode.emission.slug slug=cell.episode.slug %}">
<span>{{ cell.episode.emission.title }}&nbsp;-&nbsp;{{ cell.episode.title }}</span>
{% if cell.episode.description %}
......@@ -28,12 +28,16 @@
{% endif %}
</a>
{% elif cell.emission %}
<strong>{{ cell.datetime|date:"H:i" }}</strong>&nbsp;-&nbsp;
<a href="{% url 'emission-view' slug=cell.emission.slug %}">
<span>{{ cell.emission.title }}</span>
{% if cell.emission.description %}
<span class="smooth">&nbsp;-&nbsp;{{ cell.emission.description|safe|striptags|truncatewords:50 }}</span>
{% endif %}
</a>
{% else %}
<strong style="visibility: hidden">{{ cell.datetime|date:"H:i" }}</strong><span style="visibility: hidden">&nbsp;-&nbsp;</span>
<span class="nonstop">{{ cell.label }}</span>
{% endif %}
</li>
{% endfor %}
......
Supports Markdown
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