Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Jan 10, 2024
1 parent 5692a81 commit 3f8906d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions server/theme/email_agenda.fr_ca.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>{{ get_highlighted_field(item, ["headline", "name"]) | safe }}</h1>
<a href="{{ url_for_agenda(item) }}">{{ url_for_agenda(item) }}</a>
<a href="{{ url_for_agenda(item) }}"><b>Voir cet élément dans votre compte: </b>{{ url_for_agenda(item) }}</a>

{% if item.event %}<p class="h3">{{ dateString }}</p>{% endif %}
{% if item.event %}<p class="h3"><b>Quand: </b>{{ dateString }}</p>{% endif %}

{% if location and location != '' %}
<p class="h3"><b>Où:</b> {{ location }}</p>
Expand Down Expand Up @@ -32,6 +32,7 @@ <h1>{{ get_highlighted_field(item, ["headline", "name"]) | safe }}</h1>
{% endif %}

{% if item.definition_long or item.definition_short %}
<b>Description de l’événement: </b>
<p>
{{ get_highlighted_field(item, ["definition_long", "definition_short"]) | safe }}
</p>
Expand All @@ -43,7 +44,7 @@ <h1>{{ get_highlighted_field(item, ["headline", "name"]) | safe }}</h1>
<h3>Élément de couverture:</h3>
{% if (planning_item.get('description_text') or planning_item.get('name') or '') != (item.definition_long or item.definition_short) %}
<p>
{{ planning_item.get('description_text') or planning_item.get('name') or '' }}
<b>Description de l’élément de planification: </b>{{ planning_item.get('description_text') or planning_item.get('name') or '' }}
</p>
{% endif %}
</div>
Expand Down
8 changes: 4 additions & 4 deletions server/theme/email_agenda.fr_ca.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{{ item.headline or item.name }}
{{ url_for_agenda(item) }}
{% if item.event %}{{ dateString }}{% endif %}
Voir cet élément dans votre compte: {{ url_for_agenda(item) }}
{% if item.event %}Quand: {{ dateString }}{% 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 }}
{% endfor %}
{% endif %}{% if links | length is gt 1 %}Web: {% for link in links %}{{ link }}
{% endfor %}
{% endif %}
{% if item.definition_long or item.definition_short %}{{ item.definition_long or item.definition_short }}
{% if item.definition_long or item.definition_short %}Description de l’événement: {{ item.definition_long or item.definition_short }}
{% endif %}
{% for planning_item in item.get('planning_items', []) or [] %}
Élément de couverture:
{%- if (planning_item.get('description_text') or planning_item.get('name') or '') != (item.definition_long or item.definition_short) %}
{{ planning_item.get('description_text') or planning_item.get('name') or '' }}
Description de l’élément de planification: {{ planning_item.get('description_text') or planning_item.get('name') or '' }}
{% endif -%}
{% if planning_item.get('ednote') %}Note de la rédaction: {{ planning_item.get('ednote') }}{% endif %}
{% if planning_item.get('coverages', []) | length is gt 0 %}
Expand Down

0 comments on commit 3f8906d

Please sign in to comment.