From d3387ad41cb8f7c8bd567056dd1ae06fabcdb0af Mon Sep 17 00:00:00 2001 From: avdata99 Date: Wed, 23 Oct 2024 21:28:01 -0300 Subject: [PATCH] Fix helper --- ckanext-unckan/ckanext/unckan/plugin.py | 2 +- ckanext-unckan/ckanext/unckan/templates/footer.html | 6 ++++++ ckanext-unckan/ckanext/unckan/templates/page.html | 6 ------ 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 ckanext-unckan/ckanext/unckan/templates/footer.html delete mode 100644 ckanext-unckan/ckanext/unckan/templates/page.html diff --git a/ckanext-unckan/ckanext/unckan/plugin.py b/ckanext-unckan/ckanext/unckan/plugin.py index 5773dd5..69c49ee 100644 --- a/ckanext-unckan/ckanext/unckan/plugin.py +++ b/ckanext-unckan/ckanext/unckan/plugin.py @@ -22,5 +22,5 @@ def update_config(self, config_): def get_helpers(self): return { - 'get_unckan_version': base.get_unckan_version + 'get_unckan_version': base.get_unckan_version, } diff --git a/ckanext-unckan/ckanext/unckan/templates/footer.html b/ckanext-unckan/ckanext/unckan/templates/footer.html new file mode 100644 index 0000000..fe49431 --- /dev/null +++ b/ckanext-unckan/ckanext/unckan/templates/footer.html @@ -0,0 +1,6 @@ +{% ckan_extends %} + +{% block footer_attribution %} + {{ super() }} +

UNCKAN v{{ h.get_unckan_version() }}

+{% endblock %} diff --git a/ckanext-unckan/ckanext/unckan/templates/page.html b/ckanext-unckan/ckanext/unckan/templates/page.html deleted file mode 100644 index af580e3..0000000 --- a/ckanext-unckan/ckanext/unckan/templates/page.html +++ /dev/null @@ -1,6 +0,0 @@ -{% ckan extends %} - -{%- block footer %} - {{ super() }} - UNCKAN v{{ h.get_unckan_version }} -{% endblock -%} \ No newline at end of file