Skip to content

Commit

Permalink
update real email alerts templates [CPCN-531]
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed May 24, 2024
1 parent bbdab54 commit 21e9151
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
8 changes: 4 additions & 4 deletions server/theme/email_item.fr_ca.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<h1>{{ get_highlighted_field(item, ["headline"]) | safe }}</h1>

<p style="font-size: 0.875rem; font-weight: 400; line-height: 1.3; font-family: 'Lato', sans-serif; color: #444;">
<span style="font-weight: 600;">Voir cet élément dans votre compte: </span><a href="{{ url_for_wire(item, True, section) }}">{{ url_for_wire(item, True, section) }}</a><br />
{% if item.slugline %}<span style="font-weight: 600;">Titre de rappel: </span>{{ get_highlighted_field(item, ["slugline"]) | safe }}<br />{% endif %}
{% if item.source %}<span style="font-weight: 600;">Source: </span>{{ item.source }}<br />{% endif %}
<span style="font-weight: 600;">Publié: </span>{{ item.versioncreated | datetime_long }}<br />
{% if topic_name %}<span style="font-weight: 600;">Nouvel élément pour votre sujet suivi: </span>{{ topic_name }}<br />{% endif %}
{% if item.service %}<span style="font-weight: 600;">Catégorie: </span>{{ item.service[0].name }}<br />{% endif %}
<span style="font-weight: 600;">Nombre de mots: </span>{{ item.wordcount }}<br />
</p>

<p style="font-size: 0.875rem; font-weight: 400; line-height: 1.3; font-family: 'Lato', sans-serif; color: #444;">
{% if item.slugline %}<span style="font-weight: 600;">Titre de rappel: </span>{{ get_highlighted_field(item, ["slugline"]) | safe }}<br />{% endif %}
{% if item.source %}<span style="font-weight: 600;">Source: </span>{{ item.source }}<br />{% endif %}
<span style="font-weight: 600;">Publié: </span>{{ item.versioncreated | datetime_long }}<br />
<span style="font-weight: 600;">Voir cet élément dans votre compte: </span><a href="{{ url_for_wire(item, True, section) }}">{{ url_for_wire(item, True, section) }}</a><br />
{% if item.byline %}<span style="font-weight: 600;">{{ item.byline }}</span>{% endif %}
</p>

Expand Down
9 changes: 5 additions & 4 deletions server/theme/email_item.fr_ca.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{{ item.headline }}
Voir cet élément dans votre compte: {{ url_for_wire(item, True, section) }}
{% if topic_name %}Nouvel élément pour votre sujet suivi: {{ topic_name }}{% endif %}
{% if item.service %}Catégorie: {{ item.service[0].name }}{% endif %}
Nombre de mots: {{ item.wordcount }}

{% if item.slugline %}Titre de rappel: {{ item.slugline }}{% endif %}
{% if item.source %}Source: {{ item.source }}{% endif %}
Publié: {{ item.versioncreated | datetime_long }}
{% if topic_name %}Nouvel élément pour votre sujet suivi: {{ topic_name }}{% endif %}
{% if item.service %}Catégorie: {{ item.service[0].name }}{% endif %}
Nombre de mots: {{ item.wordcount }}

Voir cet élément dans votre compte: {{ url_for_wire(item, True, section) }}

{% if item.byline %}{{ item.byline }}{% endif %}

Expand Down
11 changes: 5 additions & 6 deletions server/theme/email_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ <h1 style="font-size: 1.5rem; font-weight: 700; line-height: 1.4; font-family: '
{{ get_highlighted_field(item, ["headline"]) | safe }}
</h1>
<p style="font-size: 0.875rem; font-weight: 400; line-height: 1.3; font-family: 'Lato', sans-serif; color: #444;">
<span style="font-weight: 600;">View this item in your account: </span><a href="{{ url_for_wire(item, True, section) }}">{{ url_for_wire(item, True, section) }}</a>
{% if item.slugline %}<span style="font-weight: 600;">Slugline: </span>{{ get_highlighted_field(item, ["slugline"]) | safe }}<br />{% endif %}
{% if item.source %}<span style="font-weight: 600;">Source: </span>{{ item.source }}<br />{% endif %}
<span style="font-weight: 600;">Published: </span>{{ item.versioncreated | datetime_long }}<br />
{% if topic_name %}<span style="font-weight: 600;">New item for followed topic: </span>{{ topic_name }}<br />{% endif %}
{% if item.service %}<span style="font-weight: 600;">Category: </span>{{ item.service[0].name }}<br />{% endif %}
<span style="font-weight: 600;">Word count: </span>{{ item.wordcount }}<br />
<br />
</p>

<p style="font-size: 0.875rem; font-weight: 400; line-height: 1.3; font-family: 'Lato', sans-serif; color: #444;">
{% if item.slugline %}<span style="font-weight: 600;">Slugline: </span>{{ get_highlighted_field(item, ["slugline"]) | safe }}<br />{% endif %}
{% if item.source %}<span style="font-weight: 600;">Source: </span>{{ item.source }}<br />{% endif %}
<span style="font-weight: 600;">Published: </span>{{ item.versioncreated | datetime_long }}<br />
<span style="font-weight: 600;">View this item in your account: </span><a href="{{ url_for_wire(item, True, section) }}">{{ url_for_wire(item, True, section) }}</a>
{% if item.byline %}<span style="font-weight: 600;">{{ item.byline }}</span>{% endif %}
<br />
</p>

<div style="font-size: 0.9375rem; font-weight: 400; line-height: 1.55; font-family: 'Lato', sans-serif; color: #333">
Expand Down
9 changes: 5 additions & 4 deletions server/theme/email_item.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{{ item.headline }}
View this item in your account: {{ url_for_wire(item, True, section) }}
{% if topic_name %}New item for followed topic: {{ topic_name }}{% endif %}
{% if item.service %}Category: {{ item.service[0].name }}{% endif %}
Word count: {{ item.wordcount }}

{% if item.slugline %}Slugline: {{ item.slugline }}{% endif %}
{% if item.source %}Source: {{ item.source }}{% endif %}
Published: {{ item.versioncreated | datetime_long }}
{% if topic_name %}New item for followed topic: {{ topic_name }}{% endif %}
{% if item.service %}Category: {{ item.service[0].name }}{% endif %}
Word count: {{ item.wordcount }}

View this item in your account: {{ url_for_wire(item, True, section) }}

{% if item.byline %}{{ item.byline }}{% endif %}

Expand Down

0 comments on commit 21e9151

Please sign in to comment.