diff --git a/submissions/utils.py b/submissions/utils.py index 31f3d55224f9630aa2c49d4fa69690f9da751634..d713236f3f2b66dab3fd04300962da4ece33e9a6 100644 --- a/submissions/utils.py +++ b/submissions/utils.py @@ -999,7 +999,7 @@ class SubmissionUtils(BaseMailUtil): def email_referee_report_delivered(cls): """ Requires loading 'report' attribute. """ cls._send_mail(cls, 'report_delivered_referee', - [cls._context['report'].report.author.user.email], + [cls._context['report'].author.user.email], 'Report delivered') @classmethod diff --git a/templates/email/report_delivered_eic.html b/templates/email/report_delivered_eic.html index 2bd15d68d595c048d689f63b9fbde35408e68121..fe01130b3d6c39bc41a02242ebecfe67d395da0a 100644 --- a/templates/email/report_delivered_eic.html +++ b/templates/email/report_delivered_eic.html @@ -1,11 +1,13 @@ -Dear {{report.submission.editor_in_charge.get_title_display}} {{report.submission.editor_in_charge.user.last_name}},\n\n +Dear {{ report.submission.editor_in_charge.get_title_display }} {{ report.submission.editor_in_charge.user.last_name }},\n\n -Referee {{report.author.get_title_display}} {{report.author.user.last_name}} has delivered a Report for Submission "{{report.submission.title}} by {{report.submission.author_list}}". +Referee {{ report.author.get_title_display }} {{ report.author.user.last_name }} has delivered a Report for Submission\n\n +{{ report.submission.title }}\n +by {{ report.submission.author_list }}. \n\n -Please vet this Report via your personal page under the Editorial Actions tab.\n -https://scipost.org{% url 'scipost:personal_page' %} -\n\n\n +Please vet this Report via your personal page at +https://scipost.org{% url 'scipost:personal_page' %}, under the Editorial Actions tab.\n +\n\n Many thanks in advance for your collaboration,\n The SciPost Team. diff --git a/templates/email/report_delivered_eic_html.html b/templates/email/report_delivered_eic_html.html index f13181d938b77bb6ecd12fcbbfa27cd6ff41f9f4..11d7d9f82e48e1ca640829b453dd495d531c386f 100644 --- a/templates/email/report_delivered_eic_html.html +++ b/templates/email/report_delivered_eic_html.html @@ -1,10 +1,12 @@ -<p>Dear {{report.submission.editor_in_charge.get_title_display}} {{report.submission.editor_in_charge.user.last_name}},</p> +<p>Dear {{ report.submission.editor_in_charge.get_title_display }} {{ report.submission.editor_in_charge.user.last_name }},</p> <p> - Referee {{report.author.get_title_display}} {{report.author.user.last_name}} has delivered a Report for Submission: + Referee {{ report.author.get_title_display }} {{ report.author.user.last_name }} has delivered a Report for Submission: </p> <p> - "{{report.submission.title}} by {{report.submission.author_list}}" + {{report.submission.title}} + <br/> + by {{ report.submission.author_list }}. </p> <p> Please vet this Report via your <a href="https://scipost.org{% url 'scipost:personal_page' %}">personal page</a> under the Editorial Actions tab. diff --git a/templates/email/report_delivered_referee.html b/templates/email/report_delivered_referee.html index a68b43dbd79ce3d87cce83025eb9d4f54b37151b..ecff9be7a20b5597ccc9684b7d849915b8e7a610 100644 --- a/templates/email/report_delivered_referee.html +++ b/templates/email/report_delivered_referee.html @@ -1,9 +1,9 @@ -Dear {{ invitation.referee.get_title_display }} {{ invitation.referee.user.last_name }},\n\n +Dear {{ report.author.get_title_display }} {{ report.author.user.last_name }},\n\n We hereby confirm reception of your Report on Submission\n\n -{{ invitation.submission.title }}\n -by {{ invitation.submission.author_list }}.\n\n +{{ report.submission.title }}\n +by {{ report.submission.author_list }}.\n\n We are immensely grateful for your time and effort. Your Report will soon be vetted by the Submission's Editor-in-charge, at which point you will receive an email update from us.\n\n diff --git a/templates/email/report_delivered_referee_html.html b/templates/email/report_delivered_referee_html.html index 43a35a8deb801d8c13c38d9f1d4baa81a1894bfe..9e50b5f4b9c9063c83433de22bd000034faa27fd 100644 --- a/templates/email/report_delivered_referee_html.html +++ b/templates/email/report_delivered_referee_html.html @@ -1,13 +1,13 @@ <p> - Dear {{ invitation.referee.get_title_display }} {{ invitation.referee.user.last_name }}, + Dear {{ report.author.get_title_display }} {{ report.author.user.last_name }}, </p> <p>We hereby confirm reception of your Report on Submission</p> <p> - {{ invitation.submission.title }} + {{ report.submission.title }} <br/> - by {{ invitation.submission.author_list }}. + by {{ report.submission.author_list }}. </p> <p>