Commit be3117ca authored by fred's avatar fred
Browse files

use singular form when there's only one diffusion (#1117)

parent 7434c101
...@@ -26,7 +26,11 @@ ...@@ -26,7 +26,11 @@
{% if episode.subtitle %} {% if episode.subtitle %}
<h3 class="episode-subtitle">{{ episode.subtitle }}</h3> <h3 class="episode-subtitle">{{ episode.subtitle }}</h3>
{% endif %} {% endif %}
{% if diffusions|length > 1 %}
<div class="label">Diffusions</div> <div class="label">Diffusions</div>
{% else %}
<div class="label">Diffusion</div>
{% endif %}
<ul class="diffusions custom"> <ul class="diffusions custom">
{% for schedule in diffusions %} {% for schedule in diffusions %}
<li><span class="date">{{ schedule.datetime|date:"l d M Y à H:i" }}</span></li> <li><span class="date">{{ schedule.datetime|date:"l d M Y à H:i" }}</span></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