home.html 822 Bytes
Newer Older
fred's avatar
fred committed
1
2
3
4
5
6
7
8
9
10
11
12
{% extends "base.html" %}

{% block content %}

{% for emission in emissions %}
<h2>{{ emission.title }}</h2>


<a class="big-friendly-button" href="{% url 'episode-add' emission_slug=emission.slug %}">Ajouter un épisode</a>

<a class="big-friendly-button" href="#">Ajouter une actu</a>

fred's avatar
fred committed
13
<a class="big-friendly-button" href="{% url 'emission-update' slug=emission.slug %}">Modifier l'émission</a>
fred's avatar
fred committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

<h4>Épisodes récents</h4>

<ul class="episode-list">
{% for episode in emission.get_sorted_emissions|slice:":10" %}
<li>{{ episode.diffusion_set.all.0.datetime|date:"d E o H:i"|lower }}
<br/>   <a href="{% url 'episode-view' emission_slug=emission.slug slug=episode.slug %}">{{ episode.title }}</a>
{% if episode.has_sound %}<span class="icon-music"/>{%endif%}
</li>
{% endfor %}
</ul>


{% endfor %}

{% endblock %}