From aa44587b7af9cac71e14f5adb56d2714cdb139bc Mon Sep 17 00:00:00 2001 From: pdelboca Date: Tue, 28 Feb 2023 10:27:12 -0300 Subject: [PATCH] Remove old snippets for resource/asset compatibility --- ckanext/harvest/templates/base.html | 2 +- ckanext/harvest/templates/harvest/snippets/harvest_asset.html | 1 - .../templates/harvest/snippets/harvest_extra_field_asset.html | 1 - ckanext/harvest/templates/source/new_source_form.html | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 ckanext/harvest/templates/harvest/snippets/harvest_asset.html delete mode 100644 ckanext/harvest/templates/harvest/snippets/harvest_extra_field_asset.html diff --git a/ckanext/harvest/templates/base.html b/ckanext/harvest/templates/base.html index 2fb8e0d..d1e58db 100644 --- a/ckanext/harvest/templates/base.html +++ b/ckanext/harvest/templates/base.html @@ -2,5 +2,5 @@ {% block styles %} {{ super() }} - {% include 'harvest/snippets/harvest_asset.html' %} + {% asset 'ckanext-harvest/harvest_css' %} {% endblock %} diff --git a/ckanext/harvest/templates/harvest/snippets/harvest_asset.html b/ckanext/harvest/templates/harvest/snippets/harvest_asset.html deleted file mode 100644 index b78146a..0000000 --- a/ckanext/harvest/templates/harvest/snippets/harvest_asset.html +++ /dev/null @@ -1 +0,0 @@ -{% asset 'ckanext-harvest/harvest_css' %} diff --git a/ckanext/harvest/templates/harvest/snippets/harvest_extra_field_asset.html b/ckanext/harvest/templates/harvest/snippets/harvest_extra_field_asset.html deleted file mode 100644 index 47e8b89..0000000 --- a/ckanext/harvest/templates/harvest/snippets/harvest_extra_field_asset.html +++ /dev/null @@ -1 +0,0 @@ -{% asset 'harvest-extra-field/main' %} diff --git a/ckanext/harvest/templates/source/new_source_form.html b/ckanext/harvest/templates/source/new_source_form.html index 8453b8a..c03aff0 100644 --- a/ckanext/harvest/templates/source/new_source_form.html +++ b/ckanext/harvest/templates/source/new_source_form.html @@ -1,6 +1,6 @@ {% import 'macros/form.html' as form %} -{% include 'harvest/snippets/harvest_extra_field_asset.html' %} +{% asset 'harvest-extra-field/main' %}