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 ...@@ -3,7 +3,7 @@ import math
from django.views.generic.base import TemplateView from django.views.generic.base import TemplateView
from emissions.models import Emission, Schedule from emissions.models import Emission, Episode, Schedule
class ProgramView(TemplateView): class ProgramView(TemplateView):
template_name = 'program.html' template_name = 'program.html'
......
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
<ul> <ul>
<!--<li><a>&lt; précédent</a></li> <!--<li><a>&lt; précédent</a></li>
<li><a>suivant &gt;</a></li>--> <li><a>suivant &gt;</a></li>-->
<li><a href="#">dernier épisode</a></li> <li><a href="#">épisodes</a></li>
<li><a href="#">archives</a></li> <li><a href="#" class="active">à propos</a></li>
<li><a href="#" class="active">à propos de l'émission</a></li>
</ul> </ul>
</nav> </nav>
<header class="mainHeader"> <header class="mainHeader">
...@@ -41,5 +40,17 @@ ...@@ -41,5 +40,17 @@
{{ emission.text|safe }} {{ emission.text|safe }}
</article> </article>
{% endif %} {% 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> </div>
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