From 3e9fbb9a4cff13e8b115ddace8b9a62a7993f809 Mon Sep 17 00:00:00 2001 From: Rae Knowler Date: Tue, 27 Aug 2024 17:42:42 +0200 Subject: [PATCH] fix: Move toggle-more rows to bottom of resource table If these rows are not at the very end of the table, the show/hide toggling won't work and they will be permanently hidden with no way to display them. --- .../templates/scheming/package/resource_read.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ckanext/scheming/templates/scheming/package/resource_read.html b/ckanext/scheming/templates/scheming/package/resource_read.html index 15f25f93..aabe7dd0 100644 --- a/ckanext/scheming/templates/scheming/package/resource_read.html +++ b/ckanext/scheming/templates/scheming/package/resource_read.html @@ -57,13 +57,6 @@ {% snippet "snippets/license.html", pkg_dict=pkg, text_only=True %} {%- endblock -%} - {%- block resource_more_items -%} - {% for key, value in h.format_resource_items(res.items()) %} - {% if key not in ('created', 'metadata modified', 'last modified', 'format') %} - {{ key | capitalize }}{{ value }} - {% endif %} - {% endfor %} - {%- endblock -%} {%- block resource_fields -%} {%- for field in schema.resource_fields -%} {%- if field.field_name not in exclude_fields @@ -81,6 +74,13 @@ {%- endif -%} {%- endfor -%} {%- endblock -%} + {%- block resource_more_items -%} + {% for key, value in h.format_resource_items(res.items()) %} + {% if key not in ('created', 'metadata modified', 'last modified', 'format') %} + {{ key | capitalize }}{{ value }} + {% endif %} + {% endfor %} + {%- endblock -%}