Commit 2a6b3c40 authored by fred's avatar fred
Browse files

do not display episodes search if there are no episodes

parent a2ee1e90
......@@ -31,6 +31,7 @@
{% endif %}
</div>
{% if episodes.exists or news %}
<div id="Emission-tabs-menu" class="rightPart episodes">
{% if news %}
......@@ -45,6 +46,7 @@
{% endif %}
{% if episodes.exists %}
<h5 class="sectionLabel right"><a class="" href="{% url 'emissionEpisodes' slug=emission.slug %}">Tous ({{ episodes.count }})</a></h5>
<h5 class="sectionLabel">Épisodes</h5>
<form method="get" action="{% url 'emissionEpisodes' slug=emission.slug %}" class="" id="search-form">
......@@ -61,7 +63,6 @@
</div>
{% endif %}
{% if episodes.exists %}
<div class="sub recent-episodes">
<h5 class="sectionLabel">Récemment</h5>
......@@ -71,8 +72,9 @@
{% endfor %}
{% endwith %}
</div>
{% endif %}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
......
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