Skip to content

Commit

Permalink
Merge pull request #6088 from OCHA-DAP/hotfix/HDX-9143-hide-pcodes-prod
Browse files Browse the repository at this point in the history
HDX-9143 hide pcodes prod
  • Loading branch information
danmihaila authored Aug 29, 2023
2 parents 26bca07 + d4baaa7 commit 931f668
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions ckanext-hdx_theme/ckanext/hdx_theme/helpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from ckan.lib import munge
from ckan.plugins import toolkit
from ckanext.hdx_package.helpers.freshness_calculator import UPDATE_FREQ_INFO
from ckanext.hdx_package.helpers.p_code_filters_helper import are_new_p_code_filters_enabled
from ckanext.hdx_theme.util.light_redirect import switch_url_path

_ = toolkit._
Expand Down
1 change: 1 addition & 0 deletions ckanext-hdx_theme/ckanext/hdx_theme/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def get_helpers(self):
'hdx_pending_request_data': hdx_helpers.hdx_pending_request_data,
'hdx_dataset_is_p_coded': hdx_helpers.hdx_dataset_is_p_coded,
'hdx_get_approved_tags_list': hdx_helpers.hdx_get_approved_tags_list,
'are_new_p_code_filters_enabled': hdx_helpers.are_new_p_code_filters_enabled,
'HDX_CONST': const
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if h.hdx_dataset_is_p_coded(resources) %}
{% if h.are_new_p_code_filters_enabled() and h.hdx_dataset_is_p_coded(resources) %}
<a href="{% url_for 'hdx_dataset.search', ext_p_coded=1 %}">
<span class="icn-txt-p-code"
title="{{ _('A P-Code, short for place code, is a unique identifier for locations in humanitarian datasets. It is most commonly used to uniquely identify subnational administrative divisions.') }}"
Expand Down
2 changes: 1 addition & 1 deletion ckanext-hdx_theme/ckanext/hdx_theme/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hdx_version = 'v1.72.4'
hdx_version = 'v1.72.5'

0 comments on commit 931f668

Please sign in to comment.