Skip to content

Commit

Permalink
emails: removed html tags from strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah authored and kpsherva committed Oct 25, 2023
1 parent 4618b21 commit 2c5e45d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{%- block html_body -%}
<table style="font-family:'Lato',Helvetica,Arial,sans-serif;border-spacing:15px">
<tr>
<td>{{ _("<b>@{user_name}</b> accepted the invitation to join your community <b>{community_title}</b>").format(user_name=receiver_name,community_title=community_title) }}
<td>{{ _("'@{user_name}' accepted the invitation to join your community '{community_title}'").format(user_name=receiver_name,community_title=community_title) }}
{% if message %}
{{ _(" with the following message:")}}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{%- block html_body -%}
<table style="font-family:'Lato',Helvetica,Arial,sans-serif;border-spacing:15px">
<tr>
<td>{{ _("The invitation for <b>@{user_name}</b> to join community <b>{community_title}</b> was cancelled").format(user_name=receiver_name,community_title=community_title) }}
<td>{{ _("The invitation for '@{user_name}' to join community '{community_title}' was cancelled").format(user_name=receiver_name,community_title=community_title) }}
{% if message %}
{{ _(" with the following message:")}}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{%- block html_body -%}
<table style="font-family:'Lato',Helvetica,Arial,sans-serif;border-spacing:15px">
<tr>
<td>{{ _("<b>@{user_name}</b> declined the invitation to join your community <b>{community_title}</b>").format(user_name=receiver_name, community_title=community_title) }}
<td>{{ _("'@{user_name}' declined the invitation to join your community '{community_title}'").format(user_name=receiver_name, community_title=community_title) }}
{% if message %}
{{ _(" with the following message:")}}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{%- block html_body -%}
<table style="font-family:'Lato',Helvetica,Arial,sans-serif;border-spacing:15px">
<tr>
<td>{{ _("The invitation for <b>@{user_name}</b> to join community <b>{community_title}</b> has expired.").format(user_name=receiver_name, community_title=community_title) }}</td>
<td>{{ _("The invitation for '@{user_name}' to join community '{community_title}' has expired.").format(user_name=receiver_name, community_title=community_title) }}</td>
</tr>
<tr>
<td><a href="{{ request_link }}" class="button">{{ _("Check out the invitation")}}</a></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{%- block html_body -%}
<table style="font-family:'Lato',Helvetica,Arial,sans-serif;border-spacing:15px">
<tr>
<td>{{ _("You have been invited to join community <b>{community_title}</b> as <b>{role}</b>").format(community_title=community_title, role=role) }}
<td>{{ _("You have been invited to join community '{community_title}' as '{role}'").format(community_title=community_title, role=role) }}
{% if message %}
{{ _(" with the following message:")}}
{% endif %}
Expand Down
8 changes: 4 additions & 4 deletions tests/members/test_members_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ def test_community_invitation_accept_notification(
assert "/me/requests/{}".format(inv["request"]["id"]) in html
# role titles will be capitalized
assert (
"<b>@{who}</b> accepted the invitation to join your community <b>{title}</b>".format(
"'@{who}' accepted the invitation to join your community '{title}'".format(
who=new_user.user.username
or new_user.user.user_profile.get("full_name"),
title=community["metadata"]["title"],
Expand Down Expand Up @@ -1355,7 +1355,7 @@ def test_community_invitation_cancel_notification(
assert "/me/requests/{}".format(inv["request"]["id"]) in html
# role titles will be capitalized
assert (
"The invitation for <b>@{who}</b> to join community <b>{title}</b> was cancelled".format(
"The invitation for '@{who}' to join community '{title}' was cancelled".format(
who=new_user.user.username
or new_user.user.user_profile.get("full_name"),
title=community["metadata"]["title"],
Expand Down Expand Up @@ -1412,7 +1412,7 @@ def test_community_invitation_decline_notification(
assert "/me/requests/{}".format(inv["request"]["id"]) in html
# role titles will be capitalized
assert (
"<b>@{who}</b> declined the invitation to join your community <b>{title}</b>".format(
"'@{who}' declined the invitation to join your community '{title}'".format(
who=new_user.user.username
or new_user.user.user_profile.get("full_name"),
title=community["metadata"]["title"],
Expand Down Expand Up @@ -1467,7 +1467,7 @@ def test_community_invitation_expire_notification(
assert "/me/requests/{}".format(inv["request"]["id"]) in html
# role titles will be capitalized
assert (
"The invitation for <b>@{who}</b> to join community <b>{title}</b> has expired.".format(
"The invitation for '@{who}' to join community '{title}' has expired.".format(
who=new_user.user.username
or new_user.user.user_profile.get("full_name"),
title=community["metadata"]["title"],
Expand Down

0 comments on commit 2c5e45d

Please sign in to comment.