generated from superdesk/newsroom-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CPNHUB-24] Update agenda/company_expiry email templates (#43)
* [CPNHUB-24] Update agenda/company_expiry email templates * Update CoverageRequest email * fix: Add `if` statement
- Loading branch information
1 parent
7edf5fe
commit f549b4d
Showing
18 changed files
with
212 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{%- if agenda.state == 'cancelled' -%} | ||
a été annulé | ||
{%- elif agenda.state == 'rescheduled' -%} | ||
a été reprogrammé | ||
{%- elif agenda.state == 'postponed' -%} | ||
a été reporté | ||
{%- else -%} | ||
a été mis à jour | ||
{%- endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends "email_layout.fr_ca.html" %} | ||
|
||
{% block content %} | ||
{%- if agenda.event -%} | ||
<p>L’événement que vous suivez {% include "agenda_status_text.txt" %}.</p> | ||
{%- else -%} | ||
<p>Le plan de couverture que vous suivez {% include "agenda_status_text.txt" %}.</p> | ||
{%- endif -%} | ||
|
||
{% include "email_watched_agenda.fr_ca.html" %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "email_layout.fr_ca.txt" %} | ||
|
||
{% block content %} | ||
|
||
{%- if agenda.event -%} | ||
L’événement que vous suivez {% include "agenda_status_text.txt" %}. | ||
{%- else -%} | ||
Le plan de couverture que vous suivez {% include "agenda_status_text.txt" %}. | ||
{%- endif -%} | ||
|
||
{% include "email_watched_agenda.fr_ca.txt" %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h3>Le compte de votre entreprise expirera le {{expiry_date.strftime('%d-%m-%Y')}}</h3></br> | ||
<h3>Veuillez contacter La Presse Canadienne pour obtenir plus de détails.</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Le compte de votre entreprise expirera le {{expiry_date.strftime('%d-%m-%Y')}} | ||
Veuillez contacter La Presse Canadienne pour obtenir plus de détails. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h3>Your company's account is expiring on {{expiry_date.strftime('%d-%m-%Y')}}</h3></br> | ||
<h3>Please contact The Canadian Press for further details.</h3> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Your company's account is expiring on {{expiry_date.strftime('%d-%m-%Y')}} | ||
Please contact The Canadian Press for further details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<h3>Les comptes d’entreprise suivants ont expiré ou doivent expirer dans les sept prochains jours (avant le {{expiry_date.strftime('%d-%m-%Y')}}):</h3> | ||
|
||
{% for company in companies %} | ||
<h3><pre>{{ company.get('name') }} (Courriel: {{ company.contact_email if company.contact_email else '-'}}), (Gestionnaire de compte: {{ company.account_manager if company.account_manager else '-' }}) expirant le {{ company.expiry_date.strftime('%d-%m-%Y')}}</pre></h3> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Les comptes d’entreprise suivants ont expiré ou doivent expirer dans les sept prochains jours (avant le {{expiry_date.strftime('%d-%m-%Y')}}): | ||
|
||
{% for company in companies %} | ||
{{ company.get('name') }} (Courriel: {{ company.contact_email if company.contact_email else '-'}}), (Gestionnaire de compte: {{ company.account_manager if company.account_manager else '-' }}) expirant le {{ company.expiry_date.strftime('%d-%m-%Y')}} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% block content %} | ||
<p>Une requête de couverture a été soumise par {{ name }} (<a href="mailto:{{ email }}?cc={{ recipients|join(',') }}&subject={{ subject }}">{{ email }}</a>) de {{ company }} au sujet de <a href="{{url}}">{{ item_name }}</a></p> | ||
|
||
Message: | ||
{% include "message.html" %} | ||
<a href="mailto:{{ email }}?cc={{ recipients|join(',') }}&subject={{ subject }}">Cliquez pour répondre</a> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% block content %} | ||
Une requête de couverture a été soumise par {{ name }} ({{ email }}) de {{ company }} au sujet de "{{ item_name }}" ({{ url }}) | ||
Message: | ||
{{ get_multi_line_message(message) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% extends "email_layout.fr_ca.html" %} | ||
{% include "coverage_request_content.fr_ca.html" %} | ||
{% block name %}{% endblock %} | ||
{% block footer %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% extends "email_layout.fr_ca.txt" %} | ||
{% include "coverage_request_content.fr_ca.txt" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{%- if cov.workflow_status == 'cancelled' -%} | ||
a été annulé | ||
{%- elif cov.workflow_status == 'draft' -%} | ||
attendue à {{ get_coverage_date(cov) }} | ||
{%- elif cov.workflow_status == 'assigned' -%} | ||
attendue à {{ get_coverage_date(cov) }} | ||
{%- elif cov.workflow_status == 'active' -%} | ||
en cours à {{ get_coverage_date(cov) }} | ||
{%- elif cov.workflow_status == 'completed' -%} | ||
{%- if cov.deliveries | length is gt 1 -%} | ||
mis à jour à {{ get_coverage_publish_time(cov) }} | ||
{%- else -%} | ||
disponible à {{ get_coverage_publish_time(cov) }} | ||
{%- endif -%} | ||
{%- endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<h2>{{ agenda.name or agenda.definition_short }}</h2> | ||
<a href="{{ url_for_agenda(agenda) }}">{{ url_for_agenda(agenda) }}</a> | ||
<div> | ||
<br> | ||
{% if time_updated %}<span style="color:red">!</span> {% endif %}<strong>{{ dateString }}</strong>{% if agenda.definition_short %} - {{ agenda.definition_short }}{% endif %} | ||
</div> | ||
|
||
{% if agenda.get('ednote') %} | ||
<div> | ||
<i>Note: {{ agenda.get('ednote') }}</i> | ||
</div> | ||
{% endif %} | ||
<br> | ||
|
||
{% for cov in coverage_updates.cancelled_coverages %} | ||
<div> | ||
<span style="color:red">!</span> Couverture {{ get_coverage_content_type(cov, 'fr_ca') }} '{{ cov.slugline or cov.planning.slugline }}' {% include 'coverage_status_text.fr_ca.txt' %} | ||
</div> | ||
{% if cov.get('planning', {}).get('ednote') %}{{ "\r\n" }}<div><i> Note de la rédaction: {{ cov['planning']['ednote'] }}</i></div>{% endif %} | ||
<br> | ||
{% endfor %} | ||
{% for cov in coverage_updates.modified_coverages %} | ||
<div> | ||
<span style="color:red">!</span> Couverture {{ get_coverage_content_type(cov, 'fr_ca') }} '{{ cov.slugline or cov.planning.slugline }}' {% include 'coverage_status_text.fr_ca.txt' %} | ||
</div> | ||
{% if cov.get('planning', {}).get('ednote') %}{{ "\r\n" }}<div><i> Note de la rédaction: {{ cov['planning']['ednote'] }}</i></div>{% endif %} | ||
<br> | ||
{% endfor %} | ||
{% for cov in coverage_updates.unaltered_coverages %} | ||
<div> | ||
Couverture {{ get_coverage_content_type(cov, 'fr_ca') }} '{{ cov.slugline or cov.planning.slugline }}' {% include 'coverage_status_text.fr_ca.txt' %} | ||
</div> | ||
{% if cov.get('planning', {}).get('ednote') %}{{ "\r\n" }}<div><i> Note de la rédaction: {{ cov['planning']['ednote'] }}</i></div>{% endif %} | ||
<br> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{ agenda.name or agenda.definition_short }} | ||
|
||
{{ url_for_agenda(agenda) }} | ||
|
||
{% if time_updated %}! {% endif %}{{ dateString }}{% if agenda.definition_short %} - {{ agenda.definition_short }}{% endif %} | ||
{% if agenda.ednote %}Note: {{ agenda.ednote }}{% endif %} | ||
|
||
{% for cov in coverage_updates.cancelled_coverages -%} | ||
! Couverture {{ get_coverage_content_type(cov, 'fr_ca') }} '{{ cov.slugline or cov.planning.slugline }}' {% include 'coverage_status_text.fr_ca.txt' %} | ||
{%- if cov.get('planning', {}).get('ednote') %} | ||
Note de la rédaction: {{ cov['planning']['ednote'] }} | ||
{%- endif %} | ||
{%- endfor %} | ||
|
||
{% for cov in coverage_updates.modified_coverages -%} | ||
Couverture {{ get_coverage_content_type(cov, 'fr_ca') }} '{{ cov.slugline or cov.planning.slugline }}' {% include 'coverage_status_text.fr_ca.txt' %} | ||
{%- if cov.get('planning', {}).get('ednote') %} | ||
Note de la rédaction: {{ cov['planning']['ednote'] }} | ||
{%- endif %} | ||
{%- endfor %} | ||
|
||
{% for cov in coverage_updates.unaltered_coverages -%} | ||
Couverture {{ get_coverage_content_type(cov, 'fr_ca') }} '{{ cov.slugline or cov.planning.slugline }}' {% include 'coverage_status_text.fr_ca.txt' %} | ||
{%- if cov.get('planning', {}).get('ednote') %} | ||
Note de la rédaction: {{ cov['planning']['ednote'] }} | ||
{%- endif %} | ||
{%- endfor %} |