diff --git a/server/theme/email_agenda.fr_ca.html b/server/theme/email_agenda.fr_ca.html index 3740458..3d78932 100644 --- a/server/theme/email_agenda.fr_ca.html +++ b/server/theme/email_agenda.fr_ca.html @@ -68,10 +68,10 @@

Élément de couverture:

Statut de couverture: {{get_coverage_status(cov)}}

Date et heure d’échéance de la couverture: {{get_coverage_date(cov)}}

Affecté à: - {{cov['assigned_desk_name']}} - {{cov['assigned_desk_email']}} - {{cov['assigned_user_name']}} - {{cov['assigned_user_email']}} + {% if cov.get('assigned_desk_name') %}{{cov['assigned_desk_name']}}{% endif %} + {% if cov.get('assigned_desk_email') %}{{cov['assigned_desk_email']}}{% endif %} + {% if cov.get('assigned_user_name') %}{{cov['assigned_user_name']}}{% endif %} + {% if cov.get('assigned_user_email') %}{{cov['assigned_user_email']}}{% endif %}

{% endfor %} diff --git a/server/theme/email_agenda.fr_ca.txt b/server/theme/email_agenda.fr_ca.txt index 3aa9d89..b2a173f 100644 --- a/server/theme/email_agenda.fr_ca.txt +++ b/server/theme/email_agenda.fr_ca.txt @@ -21,7 +21,11 @@ Couverture: Type de couverture: {{get_coverage_content_type(cov,recipient_language)}} Statut de couverture: {{get_coverage_status(cov)}} Date et heure d’échéance de la couverture: {{get_coverage_date(cov)}} -Affecté à: {{cov['assigned_desk_name']}} {{cov['assigned_desk_email']}} {{cov['assigned_user_name']}} {{cov['assigned_user_email']}} +Affecté à: +{% if cov.get('assigned_desk_name')%}{{cov['assigned_desk_name']}}{% endif %} +{% if cov.get('assigned_desk_email') %}{{cov['assigned_desk_email']}}{% endif %} +{% if cov.get('assigned_user_name') %}{{cov['assigned_user_name']}}{% endif %} +{% if cov.get('assigned_user_email') %}{{cov['assigned_user_email']}}{% endif %} {% endfor %} {% endif %} {% endfor %} \ No newline at end of file diff --git a/server/theme/email_agenda.html b/server/theme/email_agenda.html index 901e2db..c0aaf53 100644 --- a/server/theme/email_agenda.html +++ b/server/theme/email_agenda.html @@ -66,12 +66,14 @@

Planning item:

Type of coverage: {{get_coverage_content_type(cov,recipient_language)}}

Coverage status: {{get_coverage_status(cov)}}

Coverage due date & time: {{get_coverage_date(cov)}}

-

Assigned to: - {{cov['assigned_desk_name']}} - {{cov['assigned_desk_email']}} - {{cov['assigned_user_name']}} - {{cov['assigned_user_email']}} + {% if cov.get('assigned_desk_name') or cov.get('assigned_desk_email') or cov.get('assigned_user_name') or cov.get('assigned_user_email') %} +

Assigned to: + {% if cov.get('assigned_desk_name') %}{{cov['assigned_desk_name']}}{% endif %} + {% if cov.get('assigned_desk_email') %}{{cov['assigned_desk_email']}}{% endif %} + {% if cov.get('assigned_user_name') %}{{cov['assigned_user_name']}}{% endif %} + {% if cov.get('assigned_user_email') %}{{cov['assigned_user_email']}}{% endif %}

+ {% endif %} {% endfor %}

diff --git a/server/theme/email_agenda.txt b/server/theme/email_agenda.txt index a8de5d3..68ce920 100644 --- a/server/theme/email_agenda.txt +++ b/server/theme/email_agenda.txt @@ -22,7 +22,11 @@ Coverages: Type of coverage:{{get_coverage_content_type(cov,recipient_language)}} Coverage status: {{get_coverage_status(cov)}} Coverage due date & time: {{get_coverage_date(cov)}} -Assigned to: {{cov['assigned_desk_name']}} {{cov['assigned_desk_email']}} {{cov['assigned_user_name']}} {{cov['assigned_user_email']}} +Assigned to: +{% if cov.get('assigned_desk_name') %}{{cov['assigned_desk_name']}}{% endif %} +{% if cov.get('assigned_desk_email') %}{{cov['assigned_desk_email']}}{% endif %} +{% if cov.get('assigned_user_name') %}{{cov['assigned_user_name']}}{% endif %} +{% if cov.get('assigned_user_email') %}{{cov['assigned_user_email']}}{% endif %} {% endfor %} {% endif %} {% endfor %} \ No newline at end of file