From ecb887331f490be904c49b895f1e38ba1380004e Mon Sep 17 00:00:00 2001 From: Jin-Sun-tts Date: Wed, 4 Dec 2024 17:33:19 +0000 Subject: [PATCH 1/2] changed the location of the search message --- ckanext/datagovtheme/templates/package/search.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ckanext/datagovtheme/templates/package/search.html b/ckanext/datagovtheme/templates/package/search.html index 9c7570f0..52946f84 100644 --- a/ckanext/datagovtheme/templates/package/search.html +++ b/ckanext/datagovtheme/templates/package/search.html @@ -52,11 +52,6 @@ {% endif %} {% endfor %} - {% if request.args and c.page.item_count == 0 %} - {% trans %} -

Please try another search.

- {% endtrans %} - {% endif %} {{ _('Filter Results') }} @@ -95,6 +90,11 @@ {% set api_link = h.link_to(_('API'), h.url_for(controller='api', action='get_api', ver=3)) %} {% set api_doc_link = h.link_to(_('API Docs'), h.datagovtheme_api_doc_url()) %} + {% if request.args and c.page.item_count == 0 %} + {% trans %} +

Please try another search.

+ {% endtrans %} + {% endif %} {% if g.dumps_url -%} {% set dump_link = h.link_to(_('full {format} dump').format(format=g.dumps_format), g.dumps_url) %} {% trans %} From b168981cc1d094d930fcb5bf59984ad072b12bc5 Mon Sep 17 00:00:00 2001 From: Jin-Sun-tts Date: Wed, 4 Dec 2024 18:55:33 +0000 Subject: [PATCH 2/2] move the text out of section --- ckanext/datagovtheme/templates/package/search.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ckanext/datagovtheme/templates/package/search.html b/ckanext/datagovtheme/templates/package/search.html index 52946f84..2ab5521d 100644 --- a/ckanext/datagovtheme/templates/package/search.html +++ b/ckanext/datagovtheme/templates/package/search.html @@ -86,15 +86,15 @@
+ {% if request.args and c.page.item_count == 0 %} + {% trans %} +

Please try another search.

+ {% endtrans %} + {% endif %}

{% set api_link = h.link_to(_('API'), h.url_for(controller='api', action='get_api', ver=3)) %} {% set api_doc_link = h.link_to(_('API Docs'), h.datagovtheme_api_doc_url()) %} - {% if request.args and c.page.item_count == 0 %} - {% trans %} -

Please try another search.

- {% endtrans %} - {% endif %} {% if g.dumps_url -%} {% set dump_link = h.link_to(_('full {format} dump').format(format=g.dumps_format), g.dumps_url) %} {% trans %}