From 1d6ddaafe552ec92c81665ef519be9355b405eb2 Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:50:11 +0100 Subject: [PATCH 1/3] Fix template variable references in organization group pages and confirm delete page --- .../ckanext-pages/01_org_group_templates.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ckan/patches/ckanext-pages/01_org_group_templates.patch b/ckan/patches/ckanext-pages/01_org_group_templates.patch index 94b74a69..cdfefc33 100644 --- a/ckan/patches/ckanext-pages/01_org_group_templates.patch +++ b/ckan/patches/ckanext-pages/01_org_group_templates.patch @@ -13,6 +13,19 @@ index bbdae8f..6bf00fa 100644 + {{ h.build_nav_icon('group_pages_index', _('Pages'), id=group_dict.name, icon='file') }} {% endif %} {% endblock %} +diff --git a/ckanext/pages/theme/templates_main/ckanext_pages/confirm_delete.html b/ckanext/pages/theme/templates_main/ckanext_pages/confirm_delete.html +index 6ab5f92..c00e1d6 100644 +--- a/ckanext/pages/theme/templates_main/ckanext_pages/confirm_delete.html ++++ b/ckanext/pages/theme/templates_main/ckanext_pages/confirm_delete.html +@@ -10,7 +10,7 @@ + {% block form %} +
{{ _('Are you sure you want to delete page - {name}?').format(name=c.page_dict.name) }}
++- {% set action = form_action or h.url_for('organization_pages_delete', id=c.group_dict.name, page='/' + page) %} ++ {% set action = form_action or h.url_for('organization_pages_delete', id=group_dict.name, page='/' + page) %} +