Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openwisp_utils/admin_theme/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def send_email(
if app_settings.OPENWISP_HTML_EMAIL and body_html:
site = get_current_site(None)
scheme = "http" if settings.DEBUG else "https"
recipients_str = ", ".join(recipients)
context = dict(
title=subject,
message=body_html,
site_name=site.name,
site_url=f"{scheme}://{site.domain}",
logo_url=app_settings.OPENWISP_EMAIL_LOGO,
recipients=recipients_str,
)
context.update(extra_context)

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

.logo {
max-width: 104px;
width: 150px;
height: 86px;
}

.call-to-action {
Expand All @@ -91,7 +92,7 @@
font-size: 1.13rem;
width: fit-content;
margin: auto;
padding-top: 0.25rem;
margin-top: 1rem;
color: #101828;
}

Expand Down Expand Up @@ -156,7 +157,7 @@
</div>
{% endblock logo %}
{% block email_info %}
<div class="email-info">This email is sent to <u>{{ recipient_email }}</u> from [{{ site_name }}]</div>
<div class="email-info">This email is sent to <u>{{ recipients }}</u> from [{{ site_name }}]</div>
{% endblock email_info %}
<div class="box">
{% block mail_header %}
Expand Down
Loading