From 857967cd8e999615f75c5536e24ceb40a809da71 Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Fri, 28 Jul 2023 15:25:17 +0000 Subject: [PATCH] feat(templates): url for helper; - Replaced url_for global with helper. --- .../templates/internal/error_document_template.html | 2 +- ckanext/canada/templates/internal/header.html | 2 +- .../templates/internal/package/wet_datatable.html | 2 +- ckanext/canada/templates/internal/page.html | 2 +- .../internal/recombinant/snippets/xls_upload.html | 4 ++-- .../templates/internal/user/edit_user_form.html | 4 ++-- .../canada/templates/internal/user/read_base.html | 2 +- .../internal/user/snippets/user_search.html | 2 +- .../templates/internal/xloader/resource_data.html | 2 +- ckanext/canada/templates/public/admin/config.html | 2 +- .../canada/templates/public/macros/canada_read.html | 12 ++++++------ .../public/organization/confirm_delete_member.html | 2 +- .../templates/public/package/confirm_delete.html | 2 +- .../public/package/confirm_delete_resource.html | 2 +- ckanext/canada/templates/public/snippets/user.html | 4 ++-- .../public/snippets/wet-boew/languagetoggle.html | 4 ++-- .../canada/templates/public/user/edit_user_form.html | 4 ++-- ckanext/canada/templates/public/user/read.html | 4 ++-- 18 files changed, 29 insertions(+), 29 deletions(-) diff --git a/ckanext/canada/templates/internal/error_document_template.html b/ckanext/canada/templates/internal/error_document_template.html index b714ff7be..42f0f92ab 100644 --- a/ckanext/canada/templates/internal/error_document_template.html +++ b/ckanext/canada/templates/internal/error_document_template.html @@ -15,7 +15,7 @@

{{ _('You are not logged in to the Open Government Registry. Note that your login expires after 1 hour of inactivity. Click on the log in button below to log in.') }}

-

+

{{ _('Log in') }}

{% endif %} diff --git a/ckanext/canada/templates/internal/header.html b/ckanext/canada/templates/internal/header.html index da8500dca..e019f55e7 100644 --- a/ckanext/canada/templates/internal/header.html +++ b/ckanext/canada/templates/internal/header.html @@ -31,7 +31,7 @@ diff --git a/ckanext/canada/templates/public/snippets/wet-boew/languagetoggle.html b/ckanext/canada/templates/public/snippets/wet-boew/languagetoggle.html index 5c45e8a70..79c2bc74c 100644 --- a/ckanext/canada/templates/public/snippets/wet-boew/languagetoggle.html +++ b/ckanext/canada/templates/public/snippets/wet-boew/languagetoggle.html @@ -4,9 +4,9 @@

{{ _('Language selection') }}

diff --git a/ckanext/canada/templates/public/user/edit_user_form.html b/ckanext/canada/templates/public/user/edit_user_form.html index ceaf2a1e5..2cdff6659 100644 --- a/ckanext/canada/templates/public/user/edit_user_form.html +++ b/ckanext/canada/templates/public/user/edit_user_form.html @@ -46,12 +46,12 @@
{% block delete_button %} {% if h.check_access('user_delete', {'id': data.id}) %} - {% block delete_button_text %}{{ _('Delete') }}{% endblock %} + {% block delete_button_text %}{{ _('Delete') }}{% endblock %} {% endif %} {% endblock %} {% block generate_button %} {% if h.check_access('api_token_create', {'user': data.id}) %} - {% block generate_button_text %}{{ _('Create API Token') }}{% endblock %} + {% block generate_button_text %}{{ _('Create API Token') }}{% endblock %} {% endif %} {% endblock %} diff --git a/ckanext/canada/templates/public/user/read.html b/ckanext/canada/templates/public/user/read.html index 369f7790c..5748fd5bb 100644 --- a/ckanext/canada/templates/public/user/read.html +++ b/ckanext/canada/templates/public/user/read.html @@ -24,7 +24,7 @@

{{_('Organizations')}}

-{%- endblock -%} \ No newline at end of file +{%- endblock -%}