1 {% extends "base.html" %}
2 {% load soundfiles panikdbtags nonstop %}
4 <h2>{{ episode.emission.title }} — {{ episode.title }}</h2>
5 <span><a href="../">Retourner à l'émission</a></span>
12 <a class="button" href="edit/">Modifier</a>
13 {% if perms.emissions.add_diffusion %}
14 <a class="button" href="add-diffusion" rel="popup">Ajouter une diffusion</a>
16 <a class="button" href="add-soundfile" rel="popup">Ajouter un son</a>
17 {% if episode.effective_start and episode.effective_end %}
19 <a class="button" id="download-recording" download href="{{ episode.get_pige_download_url }}">Télécharger l'enregistrement</a>
21 {% elif not soundfiles %}
22 {% if episode.effective_start %}
23 <a class="button" id="stop-recording" href="stop">Arrêter l'enregistrement</a>
25 <a class="button" id="start-recording" href="start">Démarrer l'enregistrement</a>
28 <a class="button actually-not-that-friendly" href="delete/" rel="popup">Supprimer</a>
32 {% if episode.subtitle %}
33 <div class="description">
34 {{ episode.subtitle|safe }}
38 {% if episode.image %}
40 <img src="{{ episode.image.url }}"/>
46 {{ episode.text|safe }}
50 {% if episode.tags.all %}
53 {% for tag in episode.tags.all %}
54 <span class="tag">{{ tag }}</span>{% if not forloop.last %}, {% endif %}
62 {% now "Y-m-d H:i" as now %}
65 {% for diffusion in diffusions %}
66 <li>{{ diffusion.datetime }}
67 {% if can_manage and perms.emissions.delete_diffusion and not diffusion|is_already_in_soma %}
68 <a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>
70 {% if soundfiles|integral and perms.nonstop.add_track and diffusion.datetime|date:"Y-m-d H:i" > now %}
71 {% if not diffusion|is_already_in_soma %}
72 <a href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">[programmer dans soma]</a>
74 (diffusion déjà programmée dans soma)
75 <!-- diffusion/{{ diffusion.id }}/remove -->
85 <table id="soundfiles">
95 {% if can_manage %}<th>Modifier</th>{% endif %}
96 {% if can_manage %}<th>Supprimer</th>{% endif %}
97 {% if perms.emissions.add_focus %}<th>Focus</th>{% endif %}
100 {% for soundfile in soundfiles %}
102 <td><a href="{{ soundfile.file.url }}">{{ soundfile|sound_filename }}</a></td>
103 <td>{{ soundfile.title }}</td>
104 <td>{{ soundfile.duration|as_duration }}</td>
105 <td>{% if soundfile.format %}{{ soundfile.format }}{% else %}-{% endif %}</td>
106 <td>{% if soundfile.podcastable %}oui{% else %}non{% endif %}</td>
107 <td>{% if soundfile.fragment %}oui{% else %}non{% endif %}</td>
108 <td>{{ soundfile|nb_visits }}</td>
109 {% if can_manage %}<td><a href="sounds/{{ soundfile.id }}/"
110 class="icon-edit" rel="popup" title="Modifier"></a></td>{% endif %}
111 {% if can_manage %}<td><a href="sounds/{{ soundfile.id }}/remove"
112 class="icon-remove-sign" rel="popup" title="Retirer"></a></td>{% endif %}
113 {% if perms.emissions.add_focus %}
115 {% if soundfile|has_focus %}
116 ✓ <a class="icon-pushpin" href="{{ soundfile|unset_focus_url }}">retirer</a>
118 {% if soundfile.format %}
119 <a class="icon-pushpin" href="{{ soundfile|set_focus_url }}">mettre</a>
134 $('.image img').click(function() { $(this).toggleClass('large'); });
136 $('#id_fragment').change(function() {
138 $('#id_title').parent().show();
140 $('#id_title').parent().hide();