diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.css b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.css index dd726e8555..39bd7a0429 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.css +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.css @@ -82,22 +82,27 @@ } /* END Style Resources List*/ /* Style Additional Info */ -.additional-info table tr { - height: 38px; - font-family: 'Source Sans Pro', sans-serif; +.additional-info .additional-info-content .dataset-label { + color: #1F2937; + font-family: 'Gotham-Bold', sans-serif; + font-size: 12px; font-weight: 400; - font-size: 14px; + line-height: 14.4px; + text-transform: uppercase; } -.additional-info td { - text-align: justify; - word-break: break-word; +.additional-info .additional-info-content .dataset-details { + color: #000; + font-family: 'Source Sans Pro', sans-serif; + font-size: 14px; + line-height: 18px; + margin-top: 0.25rem; } -.additional-info td.dataset-details pre { - text-wrap: wrap; +.additional-info .additional-info-content .dataset-details .tag-wrapper { + float: none; + display: inline-block; } -.additional-info th { - max-width: 200px; - width: 190px; +.additional-info .additional-info-content .quick-edit .dataset-details { + padding-right: 0; } /* END Style Additional Info */ /* Resource grouping */ @@ -118,9 +123,16 @@ font-size: 24px; margin-left: 5px; } +.wrapper-secondary.col-4 { + border-right: 0; +} .wrapper-secondary .form-check .form-check-input { box-shadow: none; } +.wrapper-primary.col-8 { + border-left: 0; + margin-left: 0; +} .notification-platform-opt-in-action-menu { cursor: pointer; background-color: #007CE1; diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.js b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.js index e7caccff1b..ff6c85d00d 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.js +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/dataset.js @@ -15,12 +15,18 @@ $(document).ready(function() { } ); - $('#show-more-dates, #hide-more-dates').on('click', function(e) { + $('#show-extra-dates, #hide-extra-dates').on('click', function(e) { e.preventDefault(); - $('#show-more-dates, #hide-more-dates').toggleClass('d-none'); + $('#show-extra-dates, #hide-extra-dates').toggleClass('d-none'); $('.more-dates').toggleClass('d-none'); }); + $('#show-extra-fields, #hide-extra-fields').on('click', function(e) { + e.preventDefault(); + $('#show-extra-fields, #hide-extra-fields').toggleClass('d-none'); + $('.additional-info-extra-fields').toggleClass('d-none'); + }); + $('#showDatasetActivity').on('change', function() { $('.dataset-activity-wrapper').toggleClass('d-none'); }); diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/stats-chart.js b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/stats-chart.js index 8a1d3de8ef..24cc013d8a 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/stats-chart.js +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/datasets/stats-chart.js @@ -128,7 +128,7 @@ $(document).ready(function(){ if (chartData.length > 0){ setupDatasetDownloads(datasetDwdId, "#dataset-downloads-chart"); } else { - $("#dataset-downloads-chart-no-data").show(); + $("#dataset-downloads-chart-no-data").removeClass('d-none'); } } }); diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset-light.css b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset-light.css index 083dcf0ffd..d2a771b96d 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset-light.css +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset-light.css @@ -82,22 +82,27 @@ } /* END Style Resources List*/ /* Style Additional Info */ -.additional-info table tr { - height: 38px; - font-family: 'Source Sans Pro', sans-serif; +.additional-info .additional-info-content .dataset-label { + color: #1F2937; + font-family: 'Gotham-Bold', sans-serif; + font-size: 12px; font-weight: 400; - font-size: 14px; + line-height: 14.4px; + text-transform: uppercase; } -.additional-info td { - text-align: justify; - word-break: break-word; +.additional-info .additional-info-content .dataset-details { + color: #000; + font-family: 'Source Sans Pro', sans-serif; + font-size: 14px; + line-height: 18px; + margin-top: 0.25rem; } -.additional-info td.dataset-details pre { - text-wrap: wrap; +.additional-info .additional-info-content .dataset-details .tag-wrapper { + float: none; + display: inline-block; } -.additional-info th { - max-width: 200px; - width: 190px; +.additional-info .additional-info-content .quick-edit .dataset-details { + padding-right: 0; } /* END Style Additional Info */ /* Resource grouping */ @@ -118,9 +123,16 @@ font-size: 24px; margin-left: 5px; } +.wrapper-secondary.col-4 { + border-right: 0; +} .wrapper-secondary .form-check .form-check-input { box-shadow: none; } +.wrapper-primary.col-8 { + border-left: 0; + margin-left: 0; +} .notification-platform-opt-in-action-menu { cursor: pointer; background-color: #007CE1; diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset.js b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset.js index 735172e0f1..d1cd746c70 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset.js +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/light/dataset/dataset.js @@ -20,9 +20,15 @@ $(document).ready(function() { } }); - $('#show-more-dates, #hide-more-dates').on('click', function(e) { + $('#show-extra-dates, #hide-extra-dates').on('click', function(e) { e.preventDefault(); - $('#show-more-dates, #hide-more-dates').toggleClass('d-none'); + $('#show-extra-dates, #hide-extra-dates').toggleClass('d-none'); $('.more-dates').toggleClass('d-none'); }); + + $('#show-extra-fields, #hide-extra-fields').on('click', function(e) { + e.preventDefault(); + $('#show-extra-fields, #hide-extra-fields').toggleClass('d-none'); + $('.additional-info-extra-fields').toggleClass('d-none'); + }); }); diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/search_/search.js b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/search_/search.js index f101e1e160..188edbf757 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/search_/search.js +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/search_/search.js @@ -145,10 +145,10 @@ $('document').ready(function(){ $results.hide(); }); - $('.show-more-dates, .hide-more-dates').on('click', function(e) { + $('.show-extra-dates, .hide-extra-dates').on('click', function(e) { e.preventDefault(); var parent = $(this).closest('.dataset-dates'); - $('.show-more-dates, .hide-more-dates', parent).toggleClass('d-none'); + $('.show-extra-dates, .hide-extra-dates', parent).toggleClass('d-none'); $('.more-dates', parent).toggleClass('d-none'); }); }); diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml index 15e6be0fb6..120aeacba0 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml @@ -654,6 +654,7 @@ dataset-light-scripts: - hdx_theme/dataset-light-styles contents: - light/dataset/dataset.js + - select2/select2.js dataset-light-styles: <<: *common-css diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/hdx-styles/src/common/less/datasets/dataset.less b/ckanext-hdx_theme/ckanext/hdx_theme/hdx-styles/src/common/less/datasets/dataset.less index 7c1dad96ca..b46cecacb3 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/hdx-styles/src/common/less/datasets/dataset.less +++ b/ckanext-hdx_theme/ckanext/hdx_theme/hdx-styles/src/common/less/datasets/dataset.less @@ -1,5 +1,6 @@ @import "../base/variables"; @import "../base/mixins"; +@import "../bem.blocks/bem_variables"; /** OLD Dataset CSS **/ @@ -96,26 +97,34 @@ /* Style Additional Info */ .additional-info { - table tr { - height: 38px; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - font-size: 14px; - } + .additional-info-content { + .dataset-label { + color: @blue-medium-dark-color; + font-family: @gothamBoldFont; + font-size: 12px; + font-weight: 400; + line-height: 14.4px; + text-transform: uppercase; + } - td { - text-align: justify; - word-break: break-word; - &.dataset-details { - pre { - text-wrap: wrap; + .dataset-details { + color: @black-color; + font-family: 'Source Sans Pro', sans-serif; + font-size: 14px; + line-height: 18px; + margin-top: .25rem; + + .tag-wrapper { + float: none; + display: inline-block; } } - } - th { - max-width: 200px; - width: 190px; + .quick-edit { + .dataset-details { + padding-right: 0; + } + } } } /* END Style Additional Info */ @@ -145,12 +154,21 @@ } .wrapper-secondary { + &.col-4 { + border-right: 0; + } .form-check { .form-check-input { box-shadow: none; } } } +.wrapper-primary { + &.col-8 { + border-left: 0; + margin-left: 0; + } +} .notification-platform-opt-in-action-menu { cursor: pointer; diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/additional_info.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/additional_info.html deleted file mode 100644 index cbd5aa2eb4..0000000000 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/additional_info.html +++ /dev/null @@ -1,183 +0,0 @@ -
- - - - {% block package_additional_info %} - - - - - - - - - - - - - {% set modified_time = pkg_dict.last_modified %} - {% set confirmed_time = pkg_dict.review_date %} - {% set hdx_added_time = pkg_dict.metadata_created %} - - - - - {% if confirmed_time and confirmed_time > modified_time %} - - - - - {% endif %} - - - - - - - - - - - - - - {# Metadata-only datasets are public, so this option is only for full datasets #} - {% if not pkg_dict.is_requestdata_type %} - {% if h.check_access('package_update', {'id':pkg_dict.id }) %} -{# #} - - - - - {% else %} - - - - - {% endif %} - {% endif %} - - {% if not pkg_dict.is_requestdata_type %} - - - - - {% endif %} - {% if pkg_dict.is_requestdata_type %} - - - - - - - - - - - - - {% endif %} - - - {% set methodology, methodology_other = h.methodology_bk_compat(pkg_dict.methodology, pkg_dict.methodology_other) %} - - - - - - - - - - - {% if pkg_dict.resources %} - - - - - {% endif %} - {% endblock %} - -
{{ _('Source') }}{{ pkg_dict.dataset_source }}
{{ _('Contributor') }}
{{_('Time Period of the Dataset')}} [?]{{ h.render_date_from_concat_str(pkg_dict.dataset_date) }} ... {{ _('More') }}
{{_('Modified')}} [?] - {{ h.render_datetime(modified_time) }} -
{{_('Confirmed')}} [?] - {{ h.render_datetime(confirmed_time) }} -
{{_('Dataset Added on HDX')}} [?] - {{ h.render_datetime(hdx_added_time) }} {{ _('Less') }} -
{{ _('Expected Update Frequency') }}{{ h.hdx_get_frequency_by_value(pkg_dict.data_update_frequency) }}
{{ _('Location') }}
{{ _('Visibility') }} - {% if pkg_dict.private %} -
- {{ _('Private') }} - - {{ _('make it public') }} -
- {% else %} -
- {{ _('Public') }} - - {{ _('make it private') }} -
- {% endif %} -
{{ _('Visibility') }} - {% if pkg_dict.private %} -
{{ _('Private') }}
- {% else %} -
{{ _('Public') }}
- {% endif %} -
{{ _('License') }}
{{ _('Field Names') }}{{ pkg_dict.field_names | replace(",", ", ") }}
{{ _('File Types') }}{{ pkg_dict.file_types | replace(",", ", ") }}
{{ _('Number of Rows') }}{{ pkg_dict.num_of_rows }}
{{ _('Methodology') }} - - {% if not methodology_other %} - {% if methodology != None %} - {{methodology}} - {% endif %} - {% else %} - {{methodology_other}} - {% endif %} - -
{{ _('Caveats / Comments') }}{{ h.render_markdown(pkg_dict.caveats) }}
{{ _('Tags') }} -
-
- {% for tag in pkg_dict.tags %} -
- {% if tag.vocabulary_id %} - {{ tag.display_name }} - {% else %} - {{ tag.display_name }} - {% endif %} -
- {% endfor %} -
-
-
{{ _('File Format') }} -
-
-
    - {% for resource in h.dict_list_reduce(pkg_dict.resources, 'format') %} -
  • - {{ resource }} -
  • - {% endfor %} -
-
-
-
-
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/read.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/read.html index 43e3ab58ee..e5b6141f7f 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/read.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/light/dataset/read.html @@ -72,32 +72,26 @@

{{ dataset_dict.title }}

{% endif %} {% endif %} - -
-
- {% block package_resources %} - {% snippet "light/dataset/resources_list.html", pkg=pkg, resources=pkg.resources, user_survey_url=user_survey_url %} - {% endblock %} + {% block package_resources %} +
+ + {{ _("Data and Resources") }} [{{ pkg.num_resources }}] +
-
- {% block indicator_additional_info %} - {% snippet "light/dataset/additional_info.html", pkg_dict=pkg %} - {% endblock %} + {% snippet "light/dataset/resources_list.html", pkg=pkg, resources=pkg.resources, user_survey_url=user_survey_url %} + {% endblock %} + {% block indicator_additional_info %} +
+ + {{ _("Additional information") }} + +
+
+
+ {% snippet "package/snippets/additional_info.html", pkg_dict=pkg %}
+ {% endblock %}
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_read.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_read.html index e359f02ea9..22f719180c 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_read.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_read.html @@ -24,6 +24,9 @@ {% block subtitle %}{{ pkg.title or pkg.name }}{% endblock %} +{% set wrapper_primary_class = 'col-8' %} +{% set wrapper_secondary_class = 'col-4' %} + {# The line below is for google analytics #} {% block analytics_org_name %}{{ pkg.organization.name }}{% endblock %} {% block analytics_org_id %}{{ pkg.organization.id }}{% endblock %} @@ -157,38 +160,51 @@

{% endblock %} {% block secondary %} + +
+ + {{ _("Additional information") }} + +
+
+ {% block indicator_additional_info %} +
+ {% snippet "package/snippets/additional_info.html", pkg_dict=pkg %} +
+ {% endblock %} {% if not pkg.is_requestdata_type %} -
- -

{{_('Downloads')}}

-
- +
+ {{ h.json_dumps(stats_downloads_last_weeks) }} +
+

{{ _('Downloads') }}

+
+ -
+
{% endif %}
-

{{_('Related Showcases')}}

+

{{ _('Related Showcases') }}

{% snippet "package/snippets/related_list.html", pkg=pkg, user=c.userobj, showcases=showcase_list %}
- +
{% snippet 'package/snippets/activity_stream.html', activity_stream=hdx_activities, id=pkg.id, object_type='package' %}
{% if h.follow_status('dataset', pkg.name) %} - See more in your dashboard + See more in your dashboard {% endif %}
+
{% endblock %} {% block primary %} diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_resources_list.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_resources_list.html index da19221849..0ad465bd67 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_resources_list.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/hdx_resources_list.html @@ -1,33 +1,13 @@ -{% set tab_id_suffix = id_suffix or '-0' %} - -
- +
+
+ + {{ _("Data and Resources") }} [{{ pkg.num_resources }}] +
-
-
- {% block package_resources %} -
- {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources, resource_item_snippet=resource_item_snippet %} + {% block package_resources %} +
+ {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources, resource_item_snippet=resource_item_snippet %} -
- {% endblock %} -
-
- {% block indicator_additional_info %} - {% snippet "package/snippets/additional_info.html", pkg_dict=pkg %} - {% endblock %}
-
+ {% endblock %} +
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/additional_info.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/additional_info.html index 5ad8f90eeb..191d6f9f84 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/additional_info.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/additional_info.html @@ -1,205 +1,233 @@ -
+
{% set metadata_url = h.url_for('hdx_dataset.package_metadata', id=pkg_dict.id) %} -
-

Export metadata for this dataset: JSON | CSV

-
+
+ + {% block package_additional_info %} + {% set edit_mode = h.check_access('package_update', {'id':pkg_dict.id }) %} - - - - -{% block package_additional_info %} - {% set edit_mode = h.check_access('package_update', {'id':pkg_dict.id }) %} - - - - - - - - - - - - - - {% set modified_time = pkg_dict.last_modified %} - {% set confirmed_time = pkg_dict.review_date %} - {% set hdx_added_time = pkg_dict.metadata_created %} - - - - - {% if confirmed_time and confirmed_time > modified_time %} - - - - - {% endif %} - - - - - - - - - - - - - {# Metadata-only datasets are public, so this option is only for full datasets #} -{% if not pkg_dict.is_requestdata_type %} - {% if h.check_access('package_update', {'id':pkg_dict.id }) %} -{# #} - - - - - {% else %} - - - - - {% endif %} -{% endif %} - - {% if not pkg_dict.is_requestdata_type %} - - - - - {% endif %} - {% if pkg_dict.is_requestdata_type %} - - - - - - - - - - - - - {% endif %} - - - {% set methodology, methodology_other = h.methodology_bk_compat(pkg_dict.methodology, pkg_dict.methodology_other) %} - - - - - - - - - - - - - {% if pkg_dict.resources %} - - - - - {% endif %} - - - {# for extra in h.sorted_extras(pkg_dict.extras) %} - {% set key, value = extra %} - - - - - {% endfor #} - -{% endblock %} - - -
{{ _('Source') }}{{ pkg_dict.dataset_source }}
{{ _('Contributor') }}
{{_('Time Period of the Dataset')}} [?]{{ h.render_date_from_concat_str(pkg_dict.dataset_date) }} ... {{ _('More') }}
{{_('Modified')}} [?] - {{ h.render_datetime(modified_time) }} -
{{_('Confirmed')}} [?] - {{ h.render_datetime(confirmed_time) }} -
{{_('Dataset Added on HDX')}} [?] - {{ h.render_datetime(hdx_added_time) }} {{ _('Less') }} -
{{ _('Expected Update Frequency') }}{{ h.hdx_get_frequency_by_value(pkg_dict.data_update_frequency) }}
{{ _('Location') }}
{{ _('Visibility') }} - {% if pkg_dict.private %} -
{{ _('Private') }} - - {{ _('make it public') }}
- {% else %} -
{{ _('Public') }} - - {{ _('make it private') }}
- {% endif %} -
{{ _('Visibility') }} - {% if pkg_dict.private %} -
{{ _('Private') }}
- {% else %} -
{{ _('Public') }}
- {% endif %} -
{{ _('License') }}
{{ _('Field Names') }}{{ pkg_dict.field_names | replace(",", ", ") }}
{{ _('File Types') }}{{ pkg_dict.file_types | replace(",", ", ") }}
{{ _('Number of Rows') }}{{ pkg_dict.num_of_rows }}
{{ _('Methodology') }} - {% if not methodology_other %} - {% if methodology != None %} - {{methodology}} - {% endif %} - {% else %} - {{methodology_other}} - {% endif %} -
{{ _('Caveats / Comments') }}{{ h.render_markdown(pkg_dict.caveats) }}
{{ _('Tags') }} - {% for tag in pkg_dict.tags %} -
- {% if tag.vocabulary_id %} - {{ tag.display_name }} - {% else %} - {{ tag.display_name }} +
+
{{ _('Source') }}
+
{{ pkg_dict.dataset_source }}
+
+ + +
+ +
+
{{ _('Contributor') }}
+ - {% endfor %} -
{{ _('File Format') }} -
    - {% for resource in h.dict_list_reduce(pkg_dict.resources, 'format') %} -
  • - {{ resource }} -
  • - {% endfor %} -
-
{{ _(key) }}{{ value }}
+
+
+ +
+
{{ _('Methodology') }}
+ {% set methodology, methodology_other = h.methodology_bk_compat(pkg_dict.methodology, pkg_dict.methodology_other) %} +
+ {% if not methodology_other %} + {% if methodology != None %} + {{ methodology }} + {% endif %} + {% else %} + {{ methodology_other }} + {% endif %} +
+
+ +
+
{{ _('Caveats / Comments') }}
+
{{ h.render_markdown(pkg_dict.caveats) }} +
+
+ + + + {% if not pkg_dict.is_requestdata_type %} +
+
{{ _('License') }}
+ +
+ {% endif %} + {% if pkg_dict.is_requestdata_type %} +
+
{{ _('Field Names') }}
+
{{ pkg_dict.field_names | replace(",", ", ") }}
+
+
+
{{ _('File Types') }}
+
{{ pkg_dict.file_types | replace(",", ", ") }}
+
+
+
{{ _('Number of Rows') }}
+
{{ pkg_dict.num_of_rows }}
+
+ {% endif %} + +
+
{{ _('Tags') }}
+
+ {% for tag in pkg_dict.tags %} +
+ {% if tag.vocabulary_id %} + {{ tag.display_name }} + {% else %} + {{ tag.display_name }} + {% endif %} +
+ {% endfor %} +
+
+ + + {% if pkg_dict.resources %} +
+
{{ _('File Format') }}
+
+
    + {% for resource in h.dict_list_reduce(pkg_dict.resources, 'format') %} +
  • + {{ resource }} +
  • + {% endfor %} +
+
+
+ {% endif %} + + {# Metadata-only datasets are public, so this option is only for full datasets #} + {% if not pkg_dict.is_requestdata_type %} + {% if h.check_access('package_update', {'id':pkg_dict.id }) %} +
+
{{ _('Visibility') }}
+
+ {% if pkg_dict.private %} +
{{ _('Private') }} - + {{ _('make it public') }}
+ {% else %} +
{{ _('Public') }} - + {{ _('make it private') }}
+ {% endif %} +
+
+ {% else %} +
+
{{ _('Visibility') }}
+
+ {% if pkg_dict.private %} +
{{ _('Private') }}
+ {% else %} +
{{ _('Public') }}
+ {% endif %} +
+
+ {% endif %} + {% endif %} + + +
+ +
+
+ Export metadata for this dataset: JSON | CSV +
+
+ + {% endblock %} +
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resources_list.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resources_list.html index da124da650..72bd872cd4 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resources_list.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/package/snippets/resources_list.html @@ -20,7 +20,7 @@ {{ h.snippet('widget/onboarding/data-use-survey.html', id="dataUseSurveyPopup", pkg=pkg) }} {% set resource_item_snippet = resource_item_snippet or 'package/snippets/resource_item.html' %} -

+

{% block resource_list %} {% if resources %} diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/page.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/page.html index 711a9b7129..5e67b72a78 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/page.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/page.html @@ -112,11 +112,11 @@
{% if secondary_block_output|trim != '' and not secondary_right_side %} -
+
{{ secondary_block_output }}
{% endif %} -
+
{{ self.primary() }}
{% if secondary_block_output|trim != '' and secondary_right_side %} diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/qa_dashboard/qa_package_list.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/qa_dashboard/qa_package_list.html index 7779b81137..10d8d25288 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/qa_dashboard/qa_package_list.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/qa_dashboard/qa_package_list.html @@ -12,7 +12,7 @@
- {% snippet "package/hdx_resources_list.html", pkg=package, id_suffix=loop.index, resource_item_snippet='qa_dashboard/qa_resource_item.html' %} + {% snippet "package/hdx_resources_list.html", pkg=package, resource_item_snippet='qa_dashboard/qa_resource_item.html' %}
{% endfor %}
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..e3df8a0a1b 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 @@ -92,7 +92,7 @@ {% if package.dataset_date %} {% set dataset_date = h.render_date_from_concat_str(package.dataset_date) %} {% if dataset_date %} - {{_('Time Period of the Dataset')}} [?]: {{dataset_date}} ... {{ _('More') }} + {{_('Time Period of the Dataset')}} [?]: {{dataset_date}} ... {{ _('More') }} {% endif %} {% endif %} {% set modified_time = package.last_modified %} @@ -110,7 +110,7 @@ {{_('Dataset Added on HDX')}} [?]: {{ h.render_datetime(hdx_added_time) }}
{% endblock %}