Skip to content

Commit

Permalink
Fix html tags on the email content (#4090)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput committed Jul 22, 2024
1 parent d7c3f92 commit 7a37c86
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 28 deletions.
4 changes: 1 addition & 3 deletions bims/templates/csv_download/csv_created_message.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
You have received the following notice from {{ current_site }}:


<p>
{% trans "Your requested csv file has been compiled and is now ready, please find the attached file." %}
</p>
{% trans "Your requested csv file has been compiled and is now ready, please find the attached file." %}
13 changes: 4 additions & 9 deletions bims/templates/csv_download/csv_new_message.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{% load i18n %}
You have received the following notice from {{ current_site }}:

<p>

{% trans "A new download request has been created " %} :
</p>
<p>
Requester : {{ username }}
</p>
<p>
Request date : {{ date_request }}
</p>
<p></p>
<p>


{% trans "Approve or decline the request by following this link" %}: http://{{ current_site }}/download-request/
</p>

12 changes: 3 additions & 9 deletions bims/templates/csv_download/csv_new_message_without_approval.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
{% load i18n %}
You have received the following notice from {{ current_site }}:

<p>

{% trans "A new download request has been created and approved automatically" %} :
</p>
<p>
Requester : {{ username }}
</p>
<p>
Request date : {{ date_request }}
</p>
<p></p>
<p>


{% trans "See the request here" %}: http://{{ current_site }}/download-request/?approved_or_rejected=approved&requester=
</p>
12 changes: 5 additions & 7 deletions bims/templates/csv_download/csv_rejected_message.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
You have received the following notice from {{ current_site }}:


<p>
{% if not rejection_message %}
{% trans "Sorry, your request cannot be accepted." %}
{% else %}
{{ rejection_message }}
{% endif %}
</p>
{% if not rejection_message %}
{% trans "Sorry, your request cannot be accepted." %}
{% else %}
{{ rejection_message }}
{% endif %}

0 comments on commit 7a37c86

Please sign in to comment.