Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
2a6b3c40
Commit
2a6b3c40
authored
Nov 11, 2013
by
fred
Browse files
do not display episodes search if there are no episodes
parent
a2ee1e90
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/emissions/emission_detail.html
View file @
2a6b3c40
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment