{% if can_manage and perms.emissions.delete_diffusion and not diffusion|is_already_in_soma %}
<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>
{% endif %}
-{% if soundfiles|integral and perms.nonstop.add_track and diffusion.datetime|date:"Y-m-d H:i" > now %}
- {% if has_soma %}
+{% if diffusion.datetime|date:"Y-m-d H:i" > now and has_soma %}
+ {% if soundfiles|integral and perms.nonstop.add_track %}
{% if not diffusion|is_already_in_soma %}
<a href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">[programmer dans soma]</a>
{% else %}
<!-- diffusion/{{ diffusion.id }}/remove -->
{% endif %}
{% endif %}
+ {% if not soundfiles|integral and perms.nonstop.add_streameddiffusion %}
+ {% if not diffusion|is_already_in_soma %}
+ <a rel="popup" href="{% url 'nonstop-add-streamed-diffusion' pk=diffusion.id %}">[programmer stream dans soma]</a>
+ {% else %}
+ (stream déjà programmé dans soma)
+ {% endif %}
+ {% endif %}
{% endif %}
</li>
{% endfor %}