]> git.parisson.com Git - telemeta.git/commitdiff
fix block
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 21 Dec 2015 23:31:03 +0000 (00:31 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 21 Dec 2015 23:31:03 +0000 (00:31 +0100)
telemeta/templates/telemeta/mediaitem_detail.html

index 467eaabdcce0567d7f35403cf83897e3181639cf..43d3e758b4904488c04d94e96e8da0dfa27417a8 100644 (file)
 
 {% block delete %}
 {% if user.is_authenticated and perms.telemeta.delete_mediaitem %}
-
     <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url "telemeta-item-delete" item.public_id %}';};return false;" style="float:right;margin-top:0.5em;margin-bottom:1em">
       <button type="button" class="btn btn-default">
         <span class="glyphicon glyphicon-trash"></span> {% trans "Delete" %}
       </button>
     </a>
-
 {% endif %}
+{% endblock %}
 
 {% block modal %}
 <div id="share" class="modal fade" role="dialog">
 </div>
 {% endblock %}
 
-{% endblock %}
-
 {% else %}
 <p>No such item</p>
 {% endif %}