Skip to content

Commit

Permalink
fixing email sending
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederporto committed Feb 21, 2024
1 parent ff295b0 commit 858f80d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
6 changes: 2 additions & 4 deletions agenda/templates/agenda/email_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<tr>
<td style="text-align: center; padding: 1em; background-color: #3267FF; border-radius: 2em;">
<h1 style="color: #f8f8f8;">S.A.R.A.</h1>
<h2 style="color: #f8f8f8;">{{ area }}</h2>
<h2 style="color: #f8f8f8;">◂◂ {{ area }} ◂◂</h2>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -51,9 +51,7 @@ <h2 style="color: #3267FF; ">{% trans "◂ About to kickoff" %}</h2>
</td>
</tr>
<tr>
<td style="text-align: center; padding: 1em; background-color: #3267FF; color: #f8f8f8; font-size: 85%; border-radius: 1em">
{% trans "For any inquiries or assistance, please don't hesitate to reach out to our Products and Technology team." %}
</td>
<td style="text-align: center; padding: 2em; background-color: #3267FF; color: #f8f8f8; font-size: 85%; border-radius: 1em">{% blocktranslate %}The information in this message is based on the <a href="https://sara-wmb.toolforge.org/calendar" title="WMB calendar" style="color:#FFFFFF;">Wiki Movimento Brasil activity calendar</a>.<br>In case of a change in the activity planning, contact the Executive Director with a justification.<br>Revisions to the calendar are the sole responsibility of the Products and Technology team, under the supervision of the Executive Director.<br><br>For any other inquiries or assistance, please do not hesitate to reach out to our Products and Technology team.{% endblocktranslate %}</td>
</tr>
</table>
</body>
Expand Down
3 changes: 1 addition & 2 deletions agenda/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ def send_email(request):
reply_to = [settings.EMAIL_HOST_USER]
)
email_msg.content_subtype = "html"
print(manager_email)
# email_msg.send(fail_silently=False)
email_msg.send(fail_silently=False)
else:
pass
return redirect(reverse("metrics:index"))
Expand Down
Binary file modified locale/pt_BR/LC_MESSAGES/django.mo
Binary file not shown.
29 changes: 21 additions & 8 deletions locale/pt_BR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-20 03:37-0300\n"
"POT-Creation-Date: 2024-02-21 05:22-0300\n"
"PO-Revision-Date: 2024-02-09 16:44-0300\n"
"Last-Translator: Éder Porto <[email protected]>\n"
"Language-Team: PT_BR <[email protected]>\n"
Expand Down Expand Up @@ -254,13 +254,26 @@ msgstr "◂ Atividades prestes a começar"
msgid "Activities that will start in the next two weeks."
msgstr "Atividades que terão início nas próximas duas semanas."

#: .\agenda\templates\agenda\email_template.html:55
#: .\agenda\templates\agenda\email_template.html:54
msgid ""
"For any inquiries or assistance, please don't hesitate to reach out to our "
"Products and Technology team."
"The information in this message is based on the <a href=\"https://sara-wmb."
"toolforge.org/calendar\" title=\"WMB calendar\" style=\"color:#FFFFFF;"
"\">Wiki Movimento Brasil activity calendar</a>.<br>In case of a change in "
"the activity planning, contact the Executive Director with a justification."
"<br>Revisions to the calendar are the sole responsibility of the Products "
"and Technology team, under the supervision of the Executive Director."
"<br><br>For any other inquiries or assistance, please do not hesitate to "
"reach out to our Products and Technology team."
msgstr ""
"Se tiver qualquer dúvida ou precisar de ajuda, não hesite em entrar em "
"contato com nossa equipe de Produtos e Tecnologia."
"As informações desta mensagem estão baseadas no <a href=\"https://sara-wmb."
"toolforge.org/calendar\" title=\"WMB calendar\" style=\"color:#FFFFFF;"
"\">calendário de atividades do Wiki Movimento Brasil</a>.<br>Em caso de "
"alteração de planejamento de atividade, entre em contato com a Direção "
"Executiva com uma justificativa.<br>Revisões no calendário são de "
"responsabilidade exclusiva da equipe de Produtos e Tecnologia, sob a "
"supervisão da Direção Executiva.<br><br>Se tiver qualquer dúvida ou precisar "
"de ajuda, não hesite em entrar em contato com nossa equipe de Produtos e "
"Tecnologia."

#: .\agenda\templates\agenda\list_events.html:22 .\metrics\models.py:69
#: .\metrics\templates\metrics\activities_plan.html:28
Expand Down Expand Up @@ -349,12 +362,12 @@ msgstr "Apagar evento %(event_id)s?"
msgid "Update event %(event_id)s"
msgstr "Editar evento %(event_id)s"

#: .\agenda\views.py:204
#: .\agenda\views.py:200
#, python-format
msgid "SARA Report- %(area)s"
msgstr "Relatórios da SARA - %(area)s"

#: .\agenda\views.py:260
#: .\agenda\views.py:256
#, python-format
msgid ""
"<li><a href='https://sara-wmb.toolforge.org/calendar/%(year)s/%(month)s/"
Expand Down

0 comments on commit 858f80d

Please sign in to comment.