</div>
{% endblock %}
-{% block deleteitem %}
+{% block delete %}
{% if user.is_authenticated and perms.telemeta.delete_mediacollection %}
<a href="#" onclick="if(confirm(gettrans('delete the collection permanently?'))){window.location.href='{% url telemeta-collection-delete collection.public_id %}';};return false;"
class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a>
{% endblock %}
-{% block deleteitem %}
+{% 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;"
class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a>