diff --git a/ckanext/usmetadata/templates/package/snippets/resource_item.html b/ckanext/usmetadata/templates/package/snippets/resource_item.html index 6ac684a..b2ef2b2 100644 --- a/ckanext/usmetadata/templates/package/snippets/resource_item.html +++ b/ckanext/usmetadata/templates/package/snippets/resource_item.html @@ -1,3 +1,5 @@ +{% ckan_extends %} + {% set can_edit = h.check_access('package_update', {'id':pkg.id }) %} {% set url_action = 'edit' if url_is_edit and can_edit else 'read' %} {% set url = h.url_for(controller='resource', action=url_action, id=pkg.name, resource_id=res.id) %} @@ -23,49 +25,4 @@ {% endif %}

- {% block resource_item_explore %} - {% if not url_is_edit %} - - {% endif %} - {% endblock %} diff --git a/ckanext/usmetadata/templates/snippets/package_item.html b/ckanext/usmetadata/templates/snippets/package_item.html index 10dce91..c1f8e9a 100644 --- a/ckanext/usmetadata/templates/snippets/package_item.html +++ b/ckanext/usmetadata/templates/snippets/package_item.html @@ -48,10 +48,10 @@

{% endif %} {% if package.resources and not hide_resources -%} -