Skip to content

Commit

Permalink
Fix html mail template for suspend notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
baszoetekouw committed Mar 20, 2024
1 parent 91121b9 commit 10527e5
Showing 1 changed file with 36 additions and 29 deletions.
65 changes: 36 additions & 29 deletions server/templates/admin_suspended_user_account_actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,42 @@
</tr>
</table>

<p>The following accounts have received a suspension warning:</p>
<ul>
{% for mail in suspend_warning %}
<li>{{ mail }}</li>
{% endfor %}
</ul>

<p>The following accounts have been suspended:</p>
<ul>
{% for mail in suspended %}
<li>{{ mail }}</li>
{% endfor %}
</ul>


<p>The following accounts have received a deletion warning:</p>
<ul>
{% for mail in delete_warning %}
<li>{{ mail }}</li>
{% endfor %}
</ul>


<p>The following accounts have been deleted:</p>
<ul>
{% for mail in deleted %}
<li>{{ mail }}</li>
{% endfor %}
</ul>
{% if warning_suspend|length -%}
<p>The following accounts have received a suspension warning:</p>
<ul>
{% for mail in warning_suspend %}
<li>{{ mail }}</li>
{% endfor %}
</ul>
{% endif %}

{% if suspend|length -%}
<p>The following accounts have been suspended:</p>
<ul>
{% for mail in suspend %}
<li>{{ mail }}</li>
{% endfor %}
</ul>
{% endif %}


{% if warning_delete|length %}
<p>The following accounts have received a deletion warning:</p>
<ul>
{% for mail in warning_delete %}
<li>{{ mail }}</li>
{% endfor %}
</ul>
{% endif %}

{% if delete|length %}
<p>The following accounts have been deleted:</p>
<ul>
{% for mail in delete %}
<li>{{ mail }}</li>
{% endfor %}
</ul>
{% endif %}

<p>This email is automatically sent for environment {{ environment }}.</p>

Expand Down

0 comments on commit 10527e5

Please sign in to comment.