Skip to content

Commit be0745c

Browse files
committed
fix(notification): remove is_obsolete usage from email templates
KK-1441. The is_obsolete -field is removed from the user model, so it cannot be used anymore in the notification templates either, because rendering the template would fail. Remove the is_obsolete if-statements from the notification templates where it was used.
1 parent 0c78adc commit be0745c

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

notification_importers/templates/email/event_group_published-en.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
https://kummilapset.hel.fi
1515
kulttuurin.kummilapset@hel.fi
1616

17-
{% if is_obsolete %} This message has been sent to the email address of a deactivated Culture Kid profile. If you have already re-registered your child on our website https://kummilapset.hel.fi, please unsubscribe from receiving emails for the deactivated profile here {{unsubscribe_url}}.
18-
{% else %} I no longer want to receive email about the publication of events: {{unsubscribe_url}} {% endif %}
17+
I no longer want to receive email about the publication of events: {{unsubscribe_url}}.

notification_importers/templates/email/event_group_published-fi.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@
1616
kulttuurin.kummilapset@hel.fi
1717

1818

19-
{% if is_obsolete %} Tämä viesti on lähetetty käytöstä poistetun kummilapsiprofiilin sähköpostiosoitteeseen. Jos olet jo rekisteröinyt lapsesi uudestaan verkkosivuillamme https://kummilapset.hel.fi, peru käytöstä poistetun profiilin sähköpostiviestit tästä {{unsubscribe_url}}.
20-
{% else %} En halua enää viestejä kummitapahtumien julkaisusta: {{unsubscribe_url}} {% endif %}
19+
En halua enää viestejä kummitapahtumien julkaisusta: {{unsubscribe_url}}.

notification_importers/templates/email/event_group_published-sv.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
https://kummilapset.hel.fi
1515
kulttuurin.kummilapset@hel.fi
1616

17-
{% if is_obsolete %} Detta meddelande har skickats till e-postadressen för en fadderbarnsprofil som inte längre är i bruk. Om du redan har registrerat barnet på nytt på vår webbplats https://kummilapset.hel.fi, och inte längre vill få e-postmeddelanden för den profil som inte längre är i bruk, klicka här {{unsubscribe_url}}.
18-
{% else %} Jag vill inte ha några fler meddelanden om publicering av evenemang: {{unsubscribe_url}} {% endif %}
17+
Jag vill inte ha några fler meddelanden om publicering av evenemang: {{unsubscribe_url}}.

notification_importers/templates/email/event_published-en.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
https://kummilapset.hel.fi
1515
kulttuurin.kummilapset@hel.fi
1616

17-
{% if is_obsolete %} This message has been sent to the email address of a deactivated Culture Kid profile. If you have already re-registered your child on our website https://kummilapset.hel.fi, please unsubscribe from receiving emails for the deactivated profile here {{unsubscribe_url}}.
18-
{% else %} I no longer want to receive email about the publication of events: {{unsubscribe_url}} {% endif %}
17+
I no longer want to receive email about the publication of events: {{unsubscribe_url}}.

notification_importers/templates/email/event_published-fi.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
https://kummilapset.hel.fi
1616
kulttuurin.kummilapset@hel.fi
1717

18-
{% if is_obsolete %} Tämä viesti on lähetetty käytöstä poistetun kummilapsiprofiilin sähköpostiosoitteeseen. Jos olet jo rekisteröinyt lapsesi uudestaan verkkosivuillamme https://kummilapset.hel.fi, peru käytöstä poistetun profiilin sähköpostiviestit tästä {{unsubscribe_url}}.
19-
{% else %} En halua enää viestejä kummitapahtumien julkaisusta: {{unsubscribe_url}} {% endif %}
18+
En halua enää viestejä kummitapahtumien julkaisusta: {{unsubscribe_url}}.

notification_importers/templates/email/event_published-sv.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
https://kummilapset.hel.fi
1616
kulttuurin.kummilapset@hel.fi
1717

18-
{% if is_obsolete %} Detta meddelande har skickats till e-postadressen för en fadderbarnsprofil som inte längre är i bruk. Om du redan har registrerat barnet på nytt på vår webbplats https://kummilapset.hel.fi, och inte längre vill få e-postmeddelanden för den profil som inte längre är i bruk, klicka här {{unsubscribe_url}}.
19-
{% else %} Jag vill inte ha några fler meddelanden om publicering av evenemang: {{unsubscribe_url}} {% endif %}
18+
Jag vill inte ha några fler meddelanden om publicering av evenemang: {{unsubscribe_url}}.

0 commit comments

Comments
 (0)