From fd05f74d28c3c0048a76c4f46fc1086d8582292b Mon Sep 17 00:00:00 2001 From: Ketan <73937490+devketanpro@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:58:58 +0530 Subject: [PATCH] add event state and topic name in the agenda templates [CPCN-633] (#167) --- server/theme/email_agenda.fr_ca.html | 5 +++-- server/theme/email_agenda.fr_ca.txt | 5 +++-- server/theme/email_agenda.html | 5 +++-- server/theme/email_agenda.txt | 7 ++++--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/server/theme/email_agenda.fr_ca.html b/server/theme/email_agenda.fr_ca.html index 3d78932..6e12b39 100644 --- a/server/theme/email_agenda.fr_ca.html +++ b/server/theme/email_agenda.fr_ca.html @@ -1,7 +1,8 @@

{{ get_highlighted_field(item, ["headline", "name"]) | safe }}

+
Nouvel élément pour votre sujet suivi: {{ topic_name }}
Voir cet élément dans votre compte: {{ url_for_agenda(item) }} -{% if item.event %}

Quand: {{ dateString }}

{% endif %} +{% if item.event %}

Quand: {{ dateString }} {{get_event_state(item)}}

{% endif %} {% if location and location != '' %}

Où: {{ location }}

@@ -12,7 +13,7 @@

{{ get_highlighted_field(item, ["headline", "name"]) | safe }}

src={{ map | safe }} > {% endif %} -{% if contacts | length is gt 1 %} +{% if contacts | length is gt 0 %}

Contact: {% for contact in contacts %}

{{ contact.name or contact.organisation }} diff --git a/server/theme/email_agenda.fr_ca.txt b/server/theme/email_agenda.fr_ca.txt index b2a173f..3c59e15 100644 --- a/server/theme/email_agenda.fr_ca.txt +++ b/server/theme/email_agenda.fr_ca.txt @@ -1,8 +1,9 @@ {{ item.headline or item.name }} +Nouvel élément pour votre sujet suivi: {{ topic_name }} Voir cet élément dans votre compte: {{ url_for_agenda(item) }} -{% if item.event %}Quand: {{ dateString }}{% endif %} +{% if item.event %}Quand: {{ dateString }} {{get_event_state(item)}}{% endif %} {% if location and location != '' %}Où: {{ location }} -{% endif %}{% if contacts | length is gt 1 %}Contact: {% for contact in contacts %}{{ contact.name or contact.organisation }} {{ contact.phone }} {{ contact.mobile }} {{ contact.email }} +{% endif %}{% if contacts | length is gt 0 %}Contact: {% for contact in contacts %}{{ contact.name or contact.organisation }} {{ contact.phone }} {{ contact.mobile }} {{ contact.email }} {% endfor %} {% endif %}{% if links | length is gt 1 %}Web: {% for link in links %}{{ link }} {% endfor %} diff --git a/server/theme/email_agenda.html b/server/theme/email_agenda.html index c0aaf53..b18eeeb 100644 --- a/server/theme/email_agenda.html +++ b/server/theme/email_agenda.html @@ -1,6 +1,7 @@

{{ get_highlighted_field(item, ["headline", "name"]) | safe }}

+
New item for saved topic: {{ topic_name }}
View this item in your account: {{ url_for_agenda(item) }} -{% if item.event %}

When:{{ dateString }}

{% endif %} +{% if item.event %}

When:{{ dateString }} {{get_event_state(item)}}

{% endif %} {% if location and location != '' %}

Where: {{ location }}

@@ -11,7 +12,7 @@

{{ get_highlighted_field(item, ["headline", "name"]) | safe }}

src={{ map | safe }} >
{% endif %} -{% if contacts | length is gt 1 %} +{% if contacts | length is gt 0 %}

Contact: {% for contact in contacts %}

{{ contact.name or contact.organisation }} diff --git a/server/theme/email_agenda.txt b/server/theme/email_agenda.txt index 68ce920..e102dc5 100644 --- a/server/theme/email_agenda.txt +++ b/server/theme/email_agenda.txt @@ -1,8 +1,9 @@ {{ item.headline or item.name }} +New item for saved topic: {{ topic_name }} View this item in your account: {{ url_for_agenda(item) }} -{% if item.event %} When: {{ dateString }}{% endif %} -{% if location and location != '' %}Where: {{ location }} -{% endif %}{% if contacts | length is gt 1 %}Contact: {% for contact in contacts %}{{ contact.name or contact.organisation }} {{ contact.phone }} {{ contact.mobile }} {{ contact.email }} +{% if item.event %}When: {{ dateString }} {{get_event_state(item)}}{% endif %} +{% if location and location != '' %}Where: {{ location }}{% endif %} +{% if contacts | length is gt 0 %}Contact: {% for contact in contacts %}{{ contact.name or contact.organisation }} {{ contact.phone }} {{ contact.mobile }} {{ contact.email }} {% endfor %} {% endif %}{% if links | length is gt 1 %}Web: {% for link in links %}{{ link }} {% endfor %}