Skip to content

Commit

Permalink
emails: improve text-based emails (remove html)
Browse files Browse the repository at this point in the history
  • Loading branch information
vellip authored and hom3mad3 committed Sep 30, 2024
1 parent 53de832 commit 219819b
Show file tree
Hide file tree
Showing 40 changed files with 405 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,23 @@ Stellungnahme:<br>
</p>
{% endblock %}

{% block content_text %}
Name:
{{ statement.name }}

Straße, Hausnummer:
{{ statement.street_number }}

PLZ, Ort:
{{ statement.postal_code_city }}

E-Mail Adresse:
{{ statement.email }}

Stellungnahme:
{{ statement.statement| linebreaks }}
{% endblock %}

{% block cta %}{% endblock %}

{% block reason %}Diese E-Mail wurde an {{ receiver }} gesendet. Sie haben die E-Mail erhalten, weil Sie als Sachbearbeiter*in für eine digitale Öffentlichkeitsbeteiligung zu einem Bebauungsplan eingetragen wurden.{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{% block sub-headline %}{{ bplan.name }}{% endblock %}

{% block content %}
{% block content_html %}
<p>
der oben genannte Bebauungsplan wurde auf {{ site.name }} veröffentlicht, geändert oder als Entwurf angelegt. Alle eingehenden Stellungnahmen werden an {{ bplan.office_worker_email }} weitergeleitet.
</p>
Expand All @@ -21,6 +21,15 @@ Falls der Bebauungsplan nicht korrekt angezeigt wird, können Sie sich an {{ con
</p>
{% endblock %}

{% block content_text %}
der oben genannte Bebauungsplan wurde auf {{ site.name }} veröffentlicht, geändert oder als Entwurf angelegt. Alle eingehenden Stellungnahmen werden an {{ bplan.office_worker_email }} weitergeleitet.

Bebauungsplan-Nr.: {{ bplan.identifier }}
Beteiligungszeitraum: {{ bplan.start_date }} Uhr – {{ bplan.end_date }} Uhr

Falls der Bebauungsplan nicht korrekt angezeigt wird, können Sie sich an {{ contact_email }} wenden.
{% endblock %}

{% block cta_label %}Zur Projektübersicht{% endblock %}
{% block cta_url %}{{ email.get_host }}{{ project_list_url }}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ Ihre Stellungnahme
</p>
{% endblock %}

{% block content_text %}
Guten Tag,

vielen Dank für Ihre Stellungnahme. Sie ist an die zuständige Stelle weitergeleitet worden und geht in die Abwägung der öffentlichen und privaten Belange ein. Wenn Sie sich an einer öffentlichen Auslegung beteiligt haben, werden Sie außerdem nach Festsetzung des Bebauungsplans von der verantwortlichen Stelle schriftlich (per E-Mail oder postalisch) über das Ergebnis informiert, sofern Sie Ihre Adresse angegeben haben.

Ihre Angaben in der Übersicht:

Name
{{ statement.name }}
Straße, Hausnummer
{{ statement.street_number }}
PLZ, Ort
{{ statement.postal_code_city }}
E-Mail-Adresse
{{ statement.email }}
Ihre Stellungnahme
{{ statement.statement| linebreaks }}
{% endblock %}

{% block cta_label %}Bebauungsplan anzeigen{% endblock %}
{% block cta_url %}{{ project.externalproject.url }}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block headline %}{{ emailformpage.title }}{% endblock %}

{% block content %}
{% block content_html %}
<p>
{{ emailformpage.email_content }}
</p>
Expand All @@ -17,3 +17,11 @@
{% endfor %}

{% endblock %}

{% block content_text %}
{{ emailformpage.email_content }}
{% for key, value in field_values.items %}
{{key}}:
{{value}}
{% endfor %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{% block headline %}{{ emailformpage.title }}{% endblock %}

{% block content %}
<p>
{{ emailformpage.email_content }}
</p>
{{ emailformpage.email_content }}
{% endblock %}

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block headline %}Neue Initiatorenanfrage von {{ user.username }}{% endblock %}

{% block content %}
{% block content_html %}
<p>
{{ user.username }} möchte zur Initator*in gemacht werden.
</p>
Expand All @@ -31,5 +31,20 @@ Datum der Nutzerregistrierung auf meinBerlin<br>
</p>
{% endblock %}

{% block content_text %}
{{ user.username }} möchte zur Initator*in gemacht werden.

Name:
{{ user.username }}
Name der Behörde:
{{ organisation.name }}
Dienstliche E-Mail-Adresse:
{{ user.email }}
Telefonnummer:
{{ phone }}
Datum der Nutzerregistrierung auf meinBerlin:
{{ user.date_joined }}
{% endblock %}

{% block cta_label %}Zur Administration{% endblock %}
{% block cta_url %}{{ email.get_host }}{% url 'admin:meinberlin_organisations_organisation_change' organisation.id %}{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block headline %}New initiator request by {{ user.username }}{% endblock %}

{% block content %}
{% block content_html %}
<p>
{{ user.username }} wants to become an initiator.
</p>
Expand All @@ -31,5 +31,21 @@ Date of registration on meinBerlin<br>
</p>
{% endblock %}


{% block content_text %}
{{ user.username }} wants to become an initiator.

Name:
{{ user.username }}
Name of the Organisation:
{{ organisation.name }}
Email address:
{{ user.email }}
Phone number:
{{ phone }}
Date of registration on meinBerlin:
{{ user.date_joined }}
{% endblock %}

{% block cta_label %}Go to Administration{% endblock %}
{% block cta_url %}{{ email.get_host }}{% url 'admin:meinberlin_organisations_organisation_change' organisation.id %}{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block greeting %}Hallo {{ receiver.username }},{% endblock %}

{% block content %}
{% block content_html %}
<p>
{{ action.actor.username }} hat Ihren Beitrag kommentiert:
</p>
Expand All @@ -21,6 +21,16 @@ Möchten Sie antworten?
</p>
{% endblock %}

{% block content_text %}
{{ action.actor.username }} hat Ihren Beitrag kommentiert:

{% if action.obj.comment %}
"{{ action.obj.comment|truncatewords:75 }}"
{% endif %}

Möchten Sie antworten?
{% endblock %}

{% block cta_url %}{% if action.obj.get_absolute_url %}{{ email.get_host }}{{ action.obj.get_absolute_url }}{% else %}{{ email.get_host }}{{ action.project.get_absolute_url }}{% endif %}{% endblock %}
{% block cta_label %}{% if action.obj.get_absolute_url %}Beitrag anzeigen{% else %}Projekt anzeigen{% endif %}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block greeting %}Hello {{ receiver.username }},{% endblock %}

{% block content %}
{% block content_html %}
<p>
{{ action.actor.username }} commented on your post:
</p>
Expand All @@ -21,6 +21,16 @@ Would you like to answer?
</p>
{% endblock %}

{% block content_text %}
{{ action.actor.username }} commented on your post:

{% if action.obj.comment %}
"{{ action.obj.comment|truncatewords:75 }}"
{% endif %}

Would you like to answer?
{% endblock %}

{% block cta_url %}{% if action.obj.get_absolute_url %}{{ email.get_host }}{{ action.obj.get_absolute_url }}{% else %}{{ email.get_host }}{{ action.project.get_absolute_url }}{% endif %}{% endblock %}
{% block cta_label %}{% if action.obj.get_absolute_url %}View Post{% else %}Visit the project{% endif %}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
{% endblock %}

{% block content %}
{% block content_html %}
<div {% if object.moderator_feedback_text.feedback_text %}style="text-align: left;"{% endif %}>
<p>
{{ object.module.project.organisation.name }} hat auf Ihren Beitrag reagiert.
Expand All @@ -31,6 +31,19 @@ Möchten Sie antworten?
</div>
{% endblock %}

{% block content_text %}
{{ object.module.project.organisation.name }} hat auf Ihren Beitrag reagiert.

{% if object.moderator_status %}
Der Status Ihres Beitrags hat sich geändert und steht nun auf “{{ object.get_moderator_status_display }}”.
{% endif %}

Rückmeldung:
{{ object.moderator_feedback_text.feedback_text | safe }}

Möchten Sie antworten?
{% endblock %}

{% block cta_url %}{% if object.get_absolute_url %}{{ email.get_host }}{{ object.get_absolute_url }}{% else %}{{ email.get_host }}{{ object.project.get_absolute_url }}{% endif %}{% endblock %}
{% block cta_label %}{% if object.get_absolute_url %}Beitrag anzeigen{% else %}Projekt anzeigen{% endif %}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
{% endblock %}

{% block content %}
{% block content_html %}
<div {% if object.moderator_feedback_text.feedback_text %}style="text-align: left;"{% endif %}>
<p>
{{ object.module.project.organisation.name }} reacted on your contribution.
Expand All @@ -32,6 +32,20 @@ Do you want to answer?
</div>
{% endblock %}

{% block content_text %}
{{ object.module.project.organisation.name }} reacted on your contribution.

{% if object.moderator_status %}
The status of your contribution has been changed and is now “{{ object.get_moderator_status_display }}".
{% endif %}

{% if object.moderator_feedback_text.feedback_text %}
Feedback: {{ object.moderator_feedback_text.feedback_text | safe }}
{% endif %}

Do you want to answer?
{% endblock %}

{% block cta_url %}{% if object.get_absolute_url %}{{ email.get_host }}{{ object.get_absolute_url }}{% else %}{{ email.get_host }}{{ object.project.get_absolute_url }}{% endif %}{% endblock %}
{% block cta_label %}{% if object.get_absolute_url %}Check your contribution{% else %}Visit the project{% endif %}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block greeting %}Hallo {{ receiver.username }},{% endblock %}

{% block content %}
{% block content_html %}
<p>
am {{ action.obj.date }} Uhr findet die folgende Veranstaltung statt:
</p>
Expand All @@ -19,6 +19,13 @@ Weitere Informationen zu der Veranstaltung finden Sie im Projekt.
</p>
{% endblock %}

{% block content_text %}
am {{ action.obj.date }} Uhr findet die folgende Veranstaltung statt:
{{ action.obj.name }}

Weitere Informationen zu der Veranstaltung finden Sie im Projekt.
{% endblock %}

{% block cta_url %}{{ email.get_host }}{{ action.obj.get_absolute_url }}{% endblock %}
{% block cta_label %}Veranstaltung anzeigen{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block greeting %}Hello {{ receiver.username }},{% endblock %}

{% block content %}
{% block content_html %}
<p>
The following event takes place on {{ action.obj.date }}:
</p>
Expand All @@ -19,6 +19,13 @@ Further information about the event can be found in the project.
</p>
{% endblock %}

{% block content_text %}
The following event takes place on {{ action.obj.date }}:
{{ action.obj.name }}

Further information about the event can be found in the project.
{% endblock %}

{% block cta_url %}{{ email.get_host }}{{ action.obj.get_absolute_url }}{% endblock %}
{% block cta_label %}Show Event{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block greeting %}Hallo {{ receiver.username }},{% endblock %}

{% block content %}
{% block content_html %}
<p>
die Online-Beteiligung im oben genannten Projekt endet bald.
</p>
Expand All @@ -16,6 +16,12 @@ die Online-Beteiligung im oben genannten Projekt endet bald.
</p>
{% endblock %}

{% block content_text %}
die Online-Beteiligung im oben genannten Projekt endet bald.

Sie können noch bis zum {{ action.obj.end_date }} Uhr daran teilnehmen.
{% endblock %}

{% block cta_url %}{{ email.get_host }}{{ action.obj.module.get_detail_url }}{% endblock %}
{% block cta_label %}Jetzt mitmachen{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block greeting %}Hello {{ receiver.username }},{% endblock %}

{% block content %}
{% block content_html %}
<p>
the online participation in the above mentioned project will end soon.
</p>
Expand All @@ -16,6 +16,12 @@ the online participation in the above mentioned project will end soon.
</p>
{% endblock %}

{% block content_text %}
the online participation in the above mentioned project will end soon.

You can still participate until {{ action.obj.end_date }}.
{% endblock %}

{% block cta_url %}{{ email.get_host }}{{ action.obj.module.get_detail_url }}{% endblock %}
{% block cta_label %}Join now{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% block greeting %}Hallo {{ receiver.username }},{% endblock %}

{% block content %}
{% block content_html %}
<p>
die Online-Beteiligung im oben genannten Projekt hat begonnen.
</p>
Expand All @@ -16,6 +16,12 @@ die Online-Beteiligung im oben genannten Projekt hat begonnen.
</p>
{% endblock %}

{% block content_text %}
die Online-Beteiligung im oben genannten Projekt hat begonnen.

Sie können bis zum {{ action.obj.end_date }} Uhr daran teilnehmen.
{% endblock %}

{% block cta_url %}{{ email.get_host }}{{ action.obj.module.get_detail_url }}{% endblock %}
{% block cta_label %}Jetzt mitmachen{% endblock %}

Expand Down
Loading

0 comments on commit 219819b

Please sign in to comment.