Commit 0abd099a authored by Simon Daron's avatar Simon Daron
Browse files

Preparing emission template to receveive episodes

parent 2566b497
......@@ -3,7 +3,7 @@ import math
from django.views.generic.base import TemplateView
from emissions.models import Emission, Schedule
from emissions.models import Emission, Episode, Schedule
class ProgramView(TemplateView):
template_name = 'program.html'
......
......@@ -4,9 +4,8 @@
<ul>
<!--<li><a>&lt; précédent</a></li>
<li><a>suivant &gt;</a></li>-->
<li><a href="#">dernier épisode</a></li>
<li><a href="#">archives</a></li>
<li><a href="#" class="active">à propos de l'émission</a></li>
<li><a href="#">épisodes</a></li>
<li><a href="#" class="active">à propos</a></li>
</ul>
</nav>
<header class="mainHeader">
......@@ -41,5 +40,17 @@
{{ emission.text|safe }}
</article>
{% endif %}
<h3>Épisodes</h3>
<ul class="episode-list">
{% for episode in episodes %}
<li>{{ episode.first_diffusion|date:"d E o H:i"|lower }}
<br/>   <a href="{{ episode.slug }}/">{{ episode.title }}</a>
{% if episode.has_sound %}<span class="icon-music"/>{%endif%}
</li>
{% endfor %}
</ul>
</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