From f52df088fe042fa6673c79600b513a44c4950e25 Mon Sep 17 00:00:00 2001 From: Catalin Date: Tue, 21 Jan 2025 17:23:49 +0200 Subject: [PATCH] HDX-10460 remove pcode icons & rename label to "P-coded" --- .../hdx_theme/templates/light/dataset/resource_item.html | 2 +- .../hdx_theme/templates/package/snippets/resource_item.html | 2 +- .../hdx_theme/templates/search/snippets/package_icons.html | 1 - .../hdx_theme/templates/search/snippets/package_item.html | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/resource_item.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/resource_item.html index cba67e2950..06d3c703e9 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/resource_item.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/resource_item.html @@ -41,7 +41,7 @@ {% if res.p_coded == True %}
- {{ _('P-code') }}: Yes + {{ _('P-coded') }}: Yes
{% endif %}
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resource_item.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resource_item.html index 15b3461653..6c46822cfb 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resource_item.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resource_item.html @@ -35,7 +35,7 @@
{% if res.p_coded == True %}
- {{ _('P-code') }}: Yes + {{ _('P-coded') }}: Yes
{% endif %}
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_icons.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_icons.html index c70cfc163b..292d1f98be 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_icons.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_icons.html @@ -2,7 +2,6 @@ {% block leading_icons %} {% snippet 'search/snippets/package_icons_cod.html', package=package%} - {% snippet 'search/snippets/package_icons_p-code.html', resources=package.resources %} {% endblock %} {% block other_icons %} diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_item.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_item.html index 83079b797b..85a8770edc 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_item.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/search/snippets/package_item.html @@ -56,7 +56,6 @@ {% block owner_update_icons %}
{% snippet 'search/snippets/package_icons_cod.html', package=package%} - {% snippet 'search/snippets/package_icons_p-code.html', resources=package.resources %} {% set has_showcase_items = package.showcase_count and package.showcase_count > 0 %} {% set has_quality_checked = package.indicator == '1' or package.quality %}