]> git.0d.be Git - panikdb.git/blobdiff - panikdb/templates/emissions/episode_detail.html
allow staff to remove diffusions already in soma
[panikdb.git] / panikdb / templates / emissions / episode_detail.html
index 33cfa1d7739af3e9ea8cd3677905bdde571997e2..182119088d028bdec1ad28f7e2250c7b623788a4 100644 (file)
@@ -41,6 +41,7 @@
 </div>
 {% endif %}
 
+<div class="bo-block">
 {% if episode.text %}
 <div class="text">
 {{ episode.text|safe }}
@@ -55,8 +56,10 @@ Tags :
 {% endfor %}
 </p>
 {% endif %}
+</div>
 
 
+<div class="bo-block">
 <h3>Diffusions</h3>
 
 {% now "Y-m-d H:i" as now %}
@@ -73,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)
-  <!-- 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 %}
@@ -81,14 +84,16 @@ 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)
+    {% if user.is_staff %}<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>{% endif %}
     {% endif %}
   {% endif %}
 {% endif %}
 </li>
 {% endfor %}
 </ul>
+</div>
 
-
+<div class="bo-block">
 <h3>Sons</h3>
 
 <table id="soundfiles">
@@ -133,6 +138,7 @@ Tags :
 {% endfor %}
 </tbody>
 </table>
+</div>
 
 {% endblock %}