'If you exit the page you will loose your changes' : gettext('If you exit the page you will loose your changes'),
'author' : gettext('author'),
'Paste HTML to embed player in website': gettext('Paste HTML to embed player in website'),
+ 'delete the item permanently?' : gettext('delete the item permanently?')
};
function gettrans(str){
{% endblock infos %}
</div> <!-- with-rightcol -->
{% if user.is_authenticated and perms.telemeta.delete_mediaitem %}
-<div style="float: right;">
- <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">{% trans "Delete" %}</a>
-</div>
{% endif %}
{% endblock %}
+{% block deleteitem %}
+ <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>
+{% endblock %}
{% else %}
<p>No such item</p>
{% endif %}