Skip to content

Commit

Permalink
Merge pull request #234 from qld-gov-au/QOLSVC-4096-email-template
Browse files Browse the repository at this point in the history
[QOLSVC-4096] use Jinja filter for list reversal
  • Loading branch information
ThrawnCA authored Dec 4, 2023
2 parents acad61e + 8ec4012 commit 9639550
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down

0 comments on commit 9639550

Please sign in to comment.