From 07236143bf0afa1f1c06e7b12acb6c0e0bb1e44f Mon Sep 17 00:00:00 2001 From: Chris Daly Date: Thu, 9 Jan 2025 16:02:45 +0000 Subject: [PATCH 1/2] Replaced removed function Replaced function that no longer exists in latest version of CKAN. --- ckanext/ukdstheme/templates/page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/ukdstheme/templates/page.html b/ckanext/ukdstheme/templates/page.html index 8aac09f..e64d8da 100644 --- a/ckanext/ukdstheme/templates/page.html +++ b/ckanext/ukdstheme/templates/page.html @@ -23,7 +23,7 @@ {% block flash %}
{% block flash_inner %} - {% for message in h.flash.pop_messages() | list %} + {% for message in h.get_flashed_messages() | list %}
{{ h.literal(message) }}
From 8a233a566f5e5d0b022b9c4184af37f2b0062323 Mon Sep 17 00:00:00 2001 From: Chris Daly Date: Fri, 10 Jan 2025 11:40:29 +0000 Subject: [PATCH 2/2] Updated templates to co-inside with CKAN upgrade changes --- ckanext/ukdstheme/templates/footer.html | 6 ++++-- ckanext/ukdstheme/templates/page.html | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ckanext/ukdstheme/templates/footer.html b/ckanext/ukdstheme/templates/footer.html index da649f2..1636515 100644 --- a/ckanext/ukdstheme/templates/footer.html +++ b/ckanext/ukdstheme/templates/footer.html @@ -1,4 +1,5 @@ -{% ckan_extends %} +
+
{% block footer_content %}
{% endblock %} - +
+
diff --git a/ckanext/ukdstheme/templates/page.html b/ckanext/ukdstheme/templates/page.html index e64d8da..507ee17 100644 --- a/ckanext/ukdstheme/templates/page.html +++ b/ckanext/ukdstheme/templates/page.html @@ -3,7 +3,7 @@ {%- block page -%} {% block skip %} - + {% endblock %} {# @@ -23,8 +23,8 @@ {% block flash %}
{% block flash_inner %} - {% for message in h.get_flashed_messages() | list %} -
+ {% for category, message in h.get_flashed_messages(with_categories=true) %} +
{{ h.literal(message) }}
{% endfor %} @@ -54,7 +54,7 @@ {% endblock %} {% block secondary %} -