Commit cb8cc047 authored by fred's avatar fred

add link to add diffusion to soma

parent 2b5b96df
{% extends "base.html" %}
{% load soundfiles panikdbtags %}
{% load soundfiles panikdbtags nonstop %}
{% block appbar %}
<h2>{{ episode.emission.title }} — {{ episode.title }}</h2>
<span><a href="../">Retourner à l'émission</a></span>
......@@ -48,12 +48,17 @@ Tags :
<h3>Diffusions</h3>
{% now "Y-m-d H:i" as now %}
<ul>
{% for diffusion in diffusions %}
<li>{{ diffusion.datetime }}
{% if can_manage and perms.emissions.delete_diffusion %}
<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>
{% endif %}
{% if soundfiles and perms.nonstop.add_track and diffusion.datetime|date:"Y-m-d H:i" > now and not diffusion|is_already_in_soma %}
<a href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">[programmer dans soma]</a>
{% endif %}
</li>
{% endfor %}
</ul>
......
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