]> git.parisson.com Git - telemeta.git/commitdiff
fix modal div
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 22 Dec 2015 10:55:39 +0000 (11:55 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 22 Dec 2015 10:55:39 +0000 (11:55 +0100)
telemeta/templates/telemeta/mediaitem_detail.html

index 43d3e758b4904488c04d94e96e8da0dfa27417a8..9e72bcf121a007eb2d5587b557250b8c6628b04b 100644 (file)
 
 {% endif %}
 
-{% endblock content %}
-
-{% 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 content %}
+
+{% 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 %}
+
 {% else %}
 <p>No such item</p>
 {% endif %}