]> git.0d.be Git - panikdb.git/commitdiff
allow staff to remove diffusions already in soma
authorFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 15:09:13 +0000 (16:09 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 15:09:13 +0000 (16:09 +0100)
panikdb/templates/emissions/episode_detail.html

index a533ff969280e4f2c5922db92cee1b9217db6198..182119088d028bdec1ad28f7e2250c7b623788a4 100644 (file)
@@ -76,7 +76,7 @@ Tags :
   <a href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">[programmer dans soma]</a>
   {% else %}
   (diffusion déjà programmée dans soma)
   <a href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">[programmer dans soma]</a>
   {% else %}
   (diffusion déjà programmée dans soma)
-  <!-- diffusion/{{ diffusion.id }}/remove -->
+  {% if user.is_staff %}<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>{% endif %}
   {% endif %}
   {% endif %}
   {% if not soundfiles|integral and perms.nonstop.add_streameddiffusion %}
   {% endif %}
   {% endif %}
   {% if not soundfiles|integral and perms.nonstop.add_streameddiffusion %}
@@ -84,6 +84,7 @@ Tags :
     <a rel="popup" href="{% url 'nonstop-add-streamed-diffusion' pk=diffusion.id %}">[programmer stream dans soma]</a>
     {% else %}
     (stream déjà programmé dans 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)
+    {% if user.is_staff %}<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>{% endif %}
     {% endif %}
   {% endif %}
 {% endif %}
     {% endif %}
   {% endif %}
 {% endif %}