From 8ec4012215486e4f95711f8dfc939988cfa5e25f Mon Sep 17 00:00:00 2001 From: ThrawnCA Date: Mon, 4 Dec 2023 15:23:51 +1000 Subject: [PATCH] [QOLSVC-4096] use Jinja filter for list reversal --- .../activity_streams/activity_stream_email_notifications.text | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/data_qld/templates/activity_streams/activity_stream_email_notifications.text b/ckanext/data_qld/templates/activity_streams/activity_stream_email_notifications.text index bfde119a..91429bb3 100644 --- a/ckanext/data_qld/templates/activity_streams/activity_stream_email_notifications.text +++ b/ckanext/data_qld/templates/activity_streams/activity_stream_email_notifications.text @@ -15,7 +15,7 @@ {%- set action = 'organization.read' if activity_type == 'changed organization' else 'group.read' -%} {%- endif -%} {%- endif -%} - {% if action and id %}{{name}} {% if activity_type %}({{ (activity_type|replace('organization', _('organization'))|replace('package', 'dataset')|capitalize).split().reverse()|join(' ') }}){% endif %} {% url_for action, id=id, _external=True %}{% endif %} + {% if action and id %}{{name}} {% if activity_type %}({{ (activity_type|replace('organization', _('organization'))|replace('package', 'dataset')|capitalize).split()|reverse|join(' ') }}){% endif %} {% url_for action, id=id, _external=True %}{% endif %} {% endfor %} {{ _('You can turn off these email notifications in your {site_title} preferences. To change your preferences, click on this link:').format(site_title=g.site_title if g else site_title) }}