From 08ad76ad1abd724fd71478a86636b7f450a13150 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 28 Nov 2014 13:28:32 +0100 Subject: [PATCH] fix dublincore buttons --- .../templates/telemeta/collection_detail.html | 21 +++++++++++++++---- .../templates/telemeta/collection_edit.html | 3 +++ .../templates/telemeta/mediaitem_detail.html | 17 ++++++++++++--- .../templates/telemeta/mediaitem_edit.html | 3 +++ .../templates/telemeta/resource_detail.html | 17 +++++++++++++-- .../templates/telemeta/resource_edit.html | 2 ++ 6 files changed, 54 insertions(+), 9 deletions(-) diff --git a/telemeta/templates/telemeta/collection_detail.html b/telemeta/templates/telemeta/collection_detail.html index 63daaffb..aaa41ff3 100644 --- a/telemeta/templates/telemeta/collection_detail.html +++ b/telemeta/templates/telemeta/collection_detail.html @@ -240,13 +240,26 @@ {% endblock infos %} -{% endblock %} + + {% block dublincore %} + + + + {% endblock dublincore %} + +{% endblock content %} {% block delete %} -Dublin Core {% if user.is_authenticated and perms.telemeta.delete_mediacollection %} - {% trans "Delete" %} + + + + + {% endif %} {% endblock %} diff --git a/telemeta/templates/telemeta/collection_edit.html b/telemeta/templates/telemeta/collection_edit.html index bdad1d1a..58795069 100644 --- a/telemeta/templates/telemeta/collection_edit.html +++ b/telemeta/templates/telemeta/collection_edit.html @@ -86,5 +86,8 @@ {% endblock infos%} +{% block dublincore %} +{% endblock %} + {% block delete %} {% endblock %} diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html index 1e53daec..fe47e490 100644 --- a/telemeta/templates/telemeta/mediaitem_detail.html +++ b/telemeta/templates/telemeta/mediaitem_detail.html @@ -386,7 +386,13 @@ {% endif %} -Dublin Core + {% block dublincore %} + + + + {% endblock dublincore %} {% endif %} @@ -394,8 +400,13 @@ {% block delete %} {% if user.is_authenticated and perms.telemeta.delete_mediaitem %} - {% trans "Delete" %} + + + + + {% endif %} {% endblock %} diff --git a/telemeta/templates/telemeta/mediaitem_edit.html b/telemeta/templates/telemeta/mediaitem_edit.html index c713f20a..53777dd6 100644 --- a/telemeta/templates/telemeta/mediaitem_edit.html +++ b/telemeta/templates/telemeta/mediaitem_edit.html @@ -168,5 +168,8 @@ {% block related %} {% endblock %} +{% block dublincore %} +{% endblock dublincore %} + {% block delete %} {% endblock %} diff --git a/telemeta/templates/telemeta/resource_detail.html b/telemeta/templates/telemeta/resource_detail.html index 7bcc4a0c..64b8f73a 100644 --- a/telemeta/templates/telemeta/resource_detail.html +++ b/telemeta/templates/telemeta/resource_detail.html @@ -107,12 +107,25 @@ jQuery(document).ready(function(){ {% endblock infos %} + {% block dublincore %} + + + + {% endblock dublincore %} + {% endblock content %} {% block delete %} -Dublin Core {% if user.is_authenticated and perms.telemeta.delete_mediaresource %} - {% trans "Delete" %} + + + + + {% endif %} {% endblock delete %} diff --git a/telemeta/templates/telemeta/resource_edit.html b/telemeta/templates/telemeta/resource_edit.html index 3ada9621..87ac1fc0 100644 --- a/telemeta/templates/telemeta/resource_edit.html +++ b/telemeta/templates/telemeta/resource_edit.html @@ -90,6 +90,8 @@ {% endblock infos %} +{% block dublincore %} +{% endblock dublincore %} {% block delete %} {% endblock %} -- 2.39.5