]> git.0d.be Git - panikdb.git/commitdiff
limit possibility to stream to first diffusion
authorFrédéric Péters <fpeters@0d.be>
Sun, 29 Mar 2020 13:20:49 +0000 (15:20 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 29 Mar 2020 13:20:49 +0000 (15:20 +0200)
panikdb/templates/emissions/episode_detail.html

index a19a872f35f664544871b0632cef83fc54554897..cdd48cae02a102f22d24da9967155de312c9606d 100644 (file)
@@ -82,7 +82,7 @@ Tags :
   {% if has_soma and diffusion.datetime|date:"Y-m-d H:i" > s_now %}
     {% if soundfiles|integral and perms.nonstop.add_track %}
     <a rel="popup" href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">[programmer dans soma]</a>
   {% if has_soma and diffusion.datetime|date:"Y-m-d H:i" > s_now %}
     {% if soundfiles|integral and perms.nonstop.add_track %}
     <a rel="popup" href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">[programmer dans soma]</a>
-    {% elif not soundfiles|integral and perms.nonstop.add_streameddiffusion %}
+    {% elif forloop.first and not soundfiles|integral and perms.nonstop.add_streameddiffusion %}
     <a rel="popup" href="{% url 'nonstop-add-streamed-diffusion' pk=diffusion.id %}">[programmer stream dans soma]</a>
     {% endif %}
   {% endif %}
     <a rel="popup" href="{% url 'nonstop-add-streamed-diffusion' pk=diffusion.id %}">[programmer stream dans soma]</a>
     {% endif %}
   {% endif %}