diff --git a/scipost_django/common/utils.py b/scipost_django/common/utils.py index 5bfe183ab9667e3d056372dc34dd18a3cd4fc6a7..965c20c0ad3f160c90f35fa13c459ec5a672fce1 100644 --- a/scipost_django/common/utils.py +++ b/scipost_django/common/utils.py @@ -4,6 +4,7 @@ __license__ = "AGPL v3" import datetime +from django.contrib.sites.models import Site from django.core.mail import EmailMultiAlternatives from django.db.models import Q from django.template import loader @@ -101,14 +102,16 @@ def workdays_between(date_from, date_until): return workdays +# MARKED FOR DEPRECATION class BaseMailUtil(object): - mail_sender = 'no-reply@scipost.org' + mail_sender = 'no-reply@%s' % Site.objects.get_current().domain mail_sender_title = '' @classmethod def load(cls, _dict, request=None): cls._context = _dict cls._context['request'] = request + cls._context['domain'] = Site.objects.get_current().domain for var_name in _dict: setattr(cls, var_name, _dict[var_name]) @@ -134,7 +137,7 @@ class BaseMailUtil(object): if extra_bcc: bcc_list += extra_bcc email = EmailMultiAlternatives( - 'SciPost: ' + subject, # message, + subject, message, '%s <%s>' % (cls.mail_sender_title, cls.mail_sender), recipients, diff --git a/scipost_django/mails/core.py b/scipost_django/mails/core.py index 0a2bd0c15a2fff7804dba5466ff08247f4eeefc0..8d263636cfc91382fa9c99ee9a6cb64bc9b6f4ad 100644 --- a/scipost_django/mails/core.py +++ b/scipost_django/mails/core.py @@ -7,6 +7,7 @@ import re import inspect from django.conf import settings +from django.contrib.sites.models import Site from django.core.mail import EmailMultiAlternatives from django.db import models from django.template.loader import get_template @@ -52,6 +53,8 @@ class MailEngine: 'recipient_list': recipient_list, } self.template_variables = kwargs + # Add the 'domain' template variable to all templates using the Sites framework: + self.template_variables['domain'] = Site.objects.get_current().domain def __repr__(self): return '<%(cls)s code="%(code)s", validated=%(validated)s sent=%(sent)s>' % { diff --git a/scipost_django/production/views.py b/scipost_django/production/views.py index 6812efa9611fc19abf3de2271913f2893b896e7c..a73677d09f6b3461f1e4465f80147706aadebc99 100644 --- a/scipost_django/production/views.py +++ b/scipost_django/production/views.py @@ -253,7 +253,7 @@ def add_officer(request, stream_id): # Temp fix. # TODO: Implement proper email - ProductionUtils.load({'stream': stream}) + ProductionUtils.load({'request': request, 'stream': stream}) ProductionUtils.email_assigned_production_officer() return redirect(stream.get_absolute_url()) else: @@ -288,7 +288,7 @@ def add_invitations_officer(request, stream_id): # Temp fix. # TODO: Implement proper email - ProductionUtils.load({'stream': stream}) + ProductionUtils.load({'request': request, 'stream': stream}) ProductionUtils.email_assigned_invitation_officer() else: for key, error in form.errors.items(): @@ -363,7 +363,7 @@ def add_supervisor(request, stream_id): # Temp fix. # TODO: Implement proper email - ProductionUtils.load({'stream': stream}) + ProductionUtils.load({'request': request, 'stream': stream}) ProductionUtils.email_assigned_supervisor() return redirect(stream.get_absolute_url()) else: diff --git a/scipost_django/templates/email/_footer.html b/scipost_django/templates/email/_footer.html index c97423ac22b5d5b4da5b6f7a180b9254765a70bf..7fb8c03e09603ba0b8565e2debdb454af0e004b1 100644 --- a/scipost_django/templates/email/_footer.html +++ b/scipost_django/templates/email/_footer.html @@ -2,7 +2,7 @@ <div style="display: flex; flex-flow: row-wrap; color: #333333; background-color: #eeeeee; font-size: 75%; justify-content: space-evenly; align-items: center; width: 100%;"> <div style="background-color: #002b49;"> - <a href="https://scipost.org/" style="vertical-align: middle;"> + <a href="https://{{ domain }}" style="vertical-align: middle;"> <img src="{% static 'scipost/images/logo_scipost_RGB_HTML.png' %}" style="background-color: #002b49; padding: 1rem; vertical-align: middle;" width="100rem"> </a> </div> @@ -12,7 +12,7 @@ <li>Institute of Physics, University of Amsterdam</li> <li>Postbus 94485, 1090 GL Amsterdam</li> <li>The Netherlands</li> - <li>+31 (0)20 525 5775 <a href="mailto:admin@scipost.org">admin@scipost.org</a></li> + <li>+31 (0)20 525 5775 <a href="mailto:admin@{{ domain }}">admin@{{ domain }}</a></li> </ul> </div> </div> diff --git a/scipost_django/templates/email/authors/acknowledge_resubmission.html b/scipost_django/templates/email/authors/acknowledge_resubmission.html index c054e07cce143b069d1e74f5b1629ce536e520f0..7fa7b7f13bcdf21de39b9e18cff4fb487e549760 100644 --- a/scipost_django/templates/email/authors/acknowledge_resubmission.html +++ b/scipost_django/templates/email/authors/acknowledge_resubmission.html @@ -7,7 +7,7 @@ </p> <p>Your manuscript will soon be handled by the Editor-in-charge.</p> -<p>You can track your Submission at any time from your <a href="https://{{ request.get_host }}{% url 'scipost:personal_page' %}">personal page</a>.</p> +<p>You can track your Submission at any time from your <a href="https://{{ domain }}{% url 'scipost:personal_page' %}">personal page</a>.</p> <p>With many thanks,</p> <p>The SciPost Team</p> diff --git a/scipost_django/templates/email/authors/acknowledge_submission.html b/scipost_django/templates/email/authors/acknowledge_submission.html index 065a74dc312f7079772614f02642ee3936b764f9..35d8e880fd22cebb48db3956053c2231317bd47c 100644 --- a/scipost_django/templates/email/authors/acknowledge_submission.html +++ b/scipost_django/templates/email/authors/acknowledge_submission.html @@ -7,7 +7,7 @@ </p> <p>We will update you on the results of the pre-screening process within the next 5 working days.</p> -<p>You can track your Submission at any time from your <a href="https://scipost.org/personal_page">personal page</a>.</p> +<p>You can track your Submission at any time from your <a href="https://{{ domain }}{% url 'scipost:personal_page' %}">personal page</a>.</p> <p>With many thanks,</p> <p>The SciPost Team</p> diff --git a/scipost_django/templates/email/authors/inform_authors_comment_received.html b/scipost_django/templates/email/authors/inform_authors_comment_received.html index 62abf0fdad495cc222888ed3f9483df4ad383d7f..896e319d5842f896b3b56e690d21fc532cfa1ed6 100644 --- a/scipost_django/templates/email/authors/inform_authors_comment_received.html +++ b/scipost_django/templates/email/authors/inform_authors_comment_received.html @@ -6,10 +6,10 @@ <br><br> {{ submission.title }} <br>by {{ submission.author_list }}<br> - (see https://{{ request.get_host }}{{ submission.get_absolute_url }} - first submitted {{ submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ submission.get_absolute_url }} - first submitted {{ submission.original_submission_date|date:"d M Y" }}). </p> <p> - You can view it <a href="https://{{ request.get_host }}{{ comment.get_absolute_url }}">here</a>, embedded within your <a href="https://{{ request.get_host }}/submission/{{ submission.get_absolute_url }}">Submission\'s Page</a>. + You can view it <a href="https://{{ domain }}{{ comment.get_absolute_url }}">here</a>, embedded within your <a href="https://{{ domain }}/submission/{{ submission.get_absolute_url }}">Submission\'s Page</a>. </p> <p>Sincerely,</p> <p>The SciPost Team</p> diff --git a/scipost_django/templates/email/authors/inform_authors_contributor_commented_report.html b/scipost_django/templates/email/authors/inform_authors_contributor_commented_report.html index 003d0b28ed5fff8ce3c2a5c4e970da76d93762a0..31eaae893c16d6f0b14cdd56c5888cb29b2d8077 100644 --- a/scipost_django/templates/email/authors/inform_authors_contributor_commented_report.html +++ b/scipost_django/templates/email/authors/inform_authors_contributor_commented_report.html @@ -6,11 +6,11 @@ <br><br> {{ report.submission.title }} <br>by {{ report.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ report.submission.get_absolute_url }} - first submitted {{ report.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ report.submission.get_absolute_url }} - first submitted {{ report.submission.original_submission_date|date:"d M Y" }}). </p> <p> You can view this Report and the associated Comment directly at - <a href="https://{{ request.get_host }}{{ report.get_absolute_url }}">this link</a>. + <a href="https://{{ domain }}{{ report.get_absolute_url }}">this link</a>. </p> <p> We thank you very much for your contribution.<br/><br/>The SciPost Team. diff --git a/scipost_django/templates/email/authors/inform_authors_editorial_decision.html b/scipost_django/templates/email/authors/inform_authors_editorial_decision.html index 56244337db2ba63aade6f83d2f5999f2bba7080e..5cd7228393ff72c110fbe176f23f600d44416e16 100644 --- a/scipost_django/templates/email/authors/inform_authors_editorial_decision.html +++ b/scipost_django/templates/email/authors/inform_authors_editorial_decision.html @@ -65,7 +65,7 @@ </p> <p> You can view more details at the Submission's page at - <a href="https://{{ request.get_host }}{{ decision.submission.get_absolute_url }}">https://{{ request.get_host }}{{ decision.submission.get_absolute_url }}</a> . + <a href="https://{{ domain }}{{ decision.submission.get_absolute_url }}">https://{{ domain }}{{ decision.submission.get_absolute_url }}</a> . Note that these details are viewable only by the registered authors of the submission. </p> <p> diff --git a/scipost_django/templates/email/authors/inform_authors_eic_assigned_direct_rec.html b/scipost_django/templates/email/authors/inform_authors_eic_assigned_direct_rec.html index 7c68019f0e0d84cbabbcd5876031b9db9e700c2b..8443ab044d7b2e74012c10ade5094eecc06df31c 100644 --- a/scipost_django/templates/email/authors/inform_authors_eic_assigned_direct_rec.html +++ b/scipost_django/templates/email/authors/inform_authors_eic_assigned_direct_rec.html @@ -6,7 +6,7 @@ <br><br> {{ assignment.submission.title }} <br>by {{ assignment.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ assignment.submission.get_absolute_url }}. + (see https://{{ domain }}{{ assignment.submission.get_absolute_url }}. </p> <p>has been assigned to an editor. The editor chose to directly formulate an Editorial Recommendation.</p> diff --git a/scipost_django/templates/email/authors/request_pubfrac_check.html b/scipost_django/templates/email/authors/request_pubfrac_check.html index 3858f822114c773115493990f6e3d152dcf4b212..3172794f4b73c166664d67879ff538ea18f80ffa 100644 --- a/scipost_django/templates/email/authors/request_pubfrac_check.html +++ b/scipost_django/templates/email/authors/request_pubfrac_check.html @@ -5,14 +5,14 @@ For your recent SciPost publication, </p> <p> - <a href="https://{{ request.get_host }}/{{ publication.get_absolute_url }}">{{ publication.title }}</a><br> + <a href="https://{{ domain }}/{{ publication.get_absolute_url }}">{{ publication.title }}</a><br> by {{ publication.author_list }} </p> <p> we would like you to help us determine who supported the research contained in this publication. This info is of great use for our sustainability efforts. One or two minutes of your attention are all that is required. </p> <p> - Could we beg you to navigate (login required) to <a href="https://{{ request.get_host }}{% url 'journals:allocate_orgpubfractions' doi_label=publication.doi_label %}">this page</a> and check/correct the data we have prepared? + Could we beg you to navigate (login required) to <a href="https://{{ domain }}{% url 'journals:allocate_orgpubfractions' doi_label=publication.doi_label %}">this page</a> and check/correct the data we have prepared? </p> <p> Many thanks in advance, diff --git a/scipost_django/templates/email/careers/jobapplication_ack.html b/scipost_django/templates/email/careers/jobapplication_ack.html index c287638fddf60217de0b42e64978cf550e2417b9..631a2e07c99ca90d514234e213dfc56ad8f21b0f 100644 --- a/scipost_django/templates/email/careers/jobapplication_ack.html +++ b/scipost_django/templates/email/careers/jobapplication_ack.html @@ -13,8 +13,8 @@ verification link (to certify your email): </p> <p> - <a href="https://{{ request.get_host }}{% url 'careers:jobapplication_verify' uuid=jobapplication.uuid %}"> - https://{{ request.get_host }}{% url 'careers:jobapplication_verify' uuid=jobapplication.uuid %}</a> + <a href="https://{{ domain }}{% url 'careers:jobapplication_verify' uuid=jobapplication.uuid %}"> + https://{{ domain }}{% url 'careers:jobapplication_verify' uuid=jobapplication.uuid %}</a> </p> <p> We thank you very much for your interest, and will keep you updated on the diff --git a/scipost_django/templates/email/citation_notification.html b/scipost_django/templates/email/citation_notification.html index b1531ede2a0e13ecf4881257c9d98a6c9b732619..73a32ff84f04adfc93c90c78cf0f2790ce726b02 100644 --- a/scipost_django/templates/email/citation_notification.html +++ b/scipost_django/templates/email/citation_notification.html @@ -35,7 +35,7 @@ Dear {{ object.get_title }} {{ object.last_name }}, <br> <i>by {{ object.submission.author_list }}</i> <br> - <a href="https://{{ request.get_host }}/{{ object.submission.get_absolute_url }}">View the submission's page</a> + <a href="https://{{ domain }}/{{ object.submission.get_absolute_url }}">View the submission's page</a> </li> {% endfor %} </ul> @@ -56,7 +56,7 @@ Dear {{ object.get_title }} {{ object.last_name }}, {% if object.get_first_related_contributor and object.get_first_related_contributor.activation_key %} <p style="font-size: 10px;"> - Don\'t want to receive such emails? <a href="https://{{ request.get_host }}{% url 'scipost:unsubscribe' object.get_first_related_contributor.id object.get_first_related_contributor.activation_key %}">Unsubscribe</a> + Don\'t want to receive such emails? <a href="https://{{ domain }}{% url 'scipost:unsubscribe' object.get_first_related_contributor.id object.get_first_related_contributor.activation_key %}">Unsubscribe</a> </p> {% endif %} diff --git a/scipost_django/templates/email/commenters/inform_commenter_comment_rejected.html b/scipost_django/templates/email/commenters/inform_commenter_comment_rejected.html index 00408ef42fbeefabc8783556c6cea00d3f5bb72c..2e8e8f0656d13da40fcd81aa11dea56740909014 100644 --- a/scipost_django/templates/email/commenters/inform_commenter_comment_rejected.html +++ b/scipost_django/templates/email/commenters/inform_commenter_comment_rejected.html @@ -4,7 +4,7 @@ <p> The {% if comment.is_author_reply %}Author Reply{% else %}Comment{% endif %} you have submitted, concerning <br/> - {{ comment.core_content_object.title }} by {% if comment.core_content_object.author_list %}{{ comment.core_content_object.author_list }}{% elif comment.core_content_object.author %}{{ comment.core_content_object.author }}{% endif %} (<a href="https://{{ request.get_host }}{{ comment.get_absolute_url }}">see on SciPost.org</a>) + {{ comment.core_content_object.title }} by {% if comment.core_content_object.author_list %}{{ comment.core_content_object.author_list }}{% elif comment.core_content_object.author %}{{ comment.core_content_object.author }}{% endif %} (<a href="https://{{ domain }}{{ comment.get_absolute_url }}">see on SciPost.org</a>) <br/> has been rejected for the following reason: {{ comment.get_status_display }}. </p> diff --git a/scipost_django/templates/email/commenters/inform_commenter_comment_vetted.html b/scipost_django/templates/email/commenters/inform_commenter_comment_vetted.html index bbd59b48c304672bc52729f7938194b045deb05c..7124941d4afc8747862e2196664355a86e8f59b9 100644 --- a/scipost_django/templates/email/commenters/inform_commenter_comment_vetted.html +++ b/scipost_django/templates/email/commenters/inform_commenter_comment_vetted.html @@ -5,7 +5,7 @@ <p> The {% if comment.is_author_reply %}Author Reply{% else %}Comment{% endif %} you have submitted, concerning <br/> - {{ comment.core_content_object.title }} by {% if comment.core_content_object.author_list %}{{ comment.core_content_object.author_list }}{% elif comment.core_content_object.author %}{{ comment.core_content_object.author }}{% endif %} (<a href="https://{{ request.get_host }}{{ comment.get_absolute_url }}">see on SciPost.org</a>) + {{ comment.core_content_object.title }} by {% if comment.core_content_object.author_list %}{{ comment.core_content_object.author_list }}{% elif comment.core_content_object.author %}{{ comment.core_content_object.author }}{% endif %} (<a href="https://{{ domain }}{{ comment.get_absolute_url }}">see on SciPost.org</a>) <br/> has been accepted and published online. </p> diff --git a/scipost_django/templates/email/contributors/inform_contributor_duplicate_accounts_merged.html b/scipost_django/templates/email/contributors/inform_contributor_duplicate_accounts_merged.html index 89b8d7c54a1692c845c8825dbed2753d3cc21185..a89d7e79564e218285b814904d3eec1514756c25 100644 --- a/scipost_django/templates/email/contributors/inform_contributor_duplicate_accounts_merged.html +++ b/scipost_django/templates/email/contributors/inform_contributor_duplicate_accounts_merged.html @@ -8,7 +8,7 @@ Your alternate account with username <strong><em style="color: red;">{{ object.user.username }}</em></strong> has been deactivated, but all the data associated to it has been transferred to your active account. </p> <p> - Please get in touch with us at <a href="mailto:techsupport@scipost.org">SciPost techsupport</a> (or by simply replying to this email) if you have any questions. + Please get in touch with us at <a href="mailto:techsupport@{{ domain }}">SciPost techsupport</a> (or by simply replying to this email) if you have any questions. </p> <p> Many thanks, diff --git a/scipost_django/templates/email/contributors/new_activitation_link.html b/scipost_django/templates/email/contributors/new_activitation_link.html index 74956624095661512e524500555f4bbd62e4771f..9c3f753297d000542828c3df54eaa2c401699844 100644 --- a/scipost_django/templates/email/contributors/new_activitation_link.html +++ b/scipost_django/templates/email/contributors/new_activitation_link.html @@ -4,7 +4,7 @@ Your request for a new email activation link for registration to the SciPost publication portal has been received. You now need to visit this link within the next 48 hours: </p> <p> - <a href="https://{{ request.get_host }}{% url 'scipost:activation' contributor.id contributor.activation_key %}">Activate your account</a> + <a href="https://{{ domain }}{% url 'scipost:activation' contributor.id contributor.activation_key %}">Activate your account</a> </p> <p> diff --git a/scipost_django/templates/email/contributors/registration_received.html b/scipost_django/templates/email/contributors/registration_received.html index 2665576c0ec1dafac8637da74be24c24bfe6b37f..c6b012232f3de3322915230e4e722596beb0b4a2 100644 --- a/scipost_django/templates/email/contributors/registration_received.html +++ b/scipost_django/templates/email/contributors/registration_received.html @@ -5,7 +5,7 @@ Your request for registration to the SciPost publication portal has been received. You now need to validate your email by visiting this link within the next 48 hours: </p> <p> - <a href="https://{{ request.get_host }}{% url 'scipost:activation' contributor.id contributor.activation_key %}">Activate your account</a> + <a href="https://{{ domain }}{% url 'scipost:activation' contributor.id contributor.activation_key %}">Activate your account</a> </p> <h3>What happens now?</h3> <ul> diff --git a/scipost_django/templates/email/eic/assignment_request.html b/scipost_django/templates/email/eic/assignment_request.html index 1f24672965c5628ae28bd33aa8c78fc8125941d3..b460b7d7525333470fb6e2fd275626fc795b1653 100644 --- a/scipost_django/templates/email/eic/assignment_request.html +++ b/scipost_django/templates/email/eic/assignment_request.html @@ -10,7 +10,7 @@ </p> <p> - Please visit the <a href="https://scipost.org/submissions/pool">Submissions Pool</a> in order to accept or decline (it is important for you to inform us even if you decline, since this affects the result of the pre-screening process). + Please visit the <a href="https://{{ domain }}{% url 'submissions:pool' %}">Submissions Pool</a> in order to accept or decline (it is important for you to inform us even if you decline, since this affects the result of the pre-screening process). </p> <p> Note that this assignment request is automatically deprecated if another Fellow takes charge of this Submission or if pre-screening fails in the meantime. diff --git a/scipost_django/templates/email/eic/inform_eic_comment_received.html b/scipost_django/templates/email/eic/inform_eic_comment_received.html index 6f2ffc2d1052f1823312ac97ec314fd7cebfef8b..98079c13eaced2416f25f7a229679f033df521a3 100644 --- a/scipost_django/templates/email/eic/inform_eic_comment_received.html +++ b/scipost_django/templates/email/eic/inform_eic_comment_received.html @@ -9,7 +9,7 @@ by {{ comment.core_content_object.author_list }}. </p> <p> - This Comment now requires vetting, which you can perform from <a href="https://{{ request.get_host }}{% url 'submissions:editorial_page' comment.core_content_object.preprint.identifier_w_vn_nr %}">the editorial page</a> (please be careful when doing this, avoiding for example to vet doubly-submitted comments, or comments with improper language etc; in case you have any doubt, please contact our <a href="mailto:edadmin@scipost.org">editorial administration</a>). + This Comment now requires vetting, which you can perform from <a href="https://{{ domain }}{% url 'submissions:editorial_page' comment.core_content_object.preprint.identifier_w_vn_nr %}">the editorial page</a> (please be careful when doing this, avoiding for example to vet doubly-submitted comments, or comments with improper language etc; in case you have any doubt, please contact our <a href="mailto:edadmin@{{ domain }}">editorial administration</a>). </p> <p> Many thanks in advance for your collaboration,<br> diff --git a/scipost_django/templates/email/eic/inform_eic_report_received.html b/scipost_django/templates/email/eic/inform_eic_report_received.html index a31345f46a4e2cedb1f22ccef924353baabcc1be..de9d7f34758d6d20787ab790808c533fba24c83e 100644 --- a/scipost_django/templates/email/eic/inform_eic_report_received.html +++ b/scipost_django/templates/email/eic/inform_eic_report_received.html @@ -9,7 +9,7 @@ by {{ report.submission.author_list }}. </p> <p> - Please vet this Report via your <a href="https://{{ request.get_host }}{% url 'scipost:personal_page' %}">personal page</a> under the Editorial Actions tab. + Please vet this Report via your <a href="https://{{ domain }}{% url 'scipost:personal_page' %}">personal page</a> under the Editorial Actions tab. </p> <p> Many thanks in advance for your collaboration,<br> diff --git a/scipost_django/templates/email/eic/referee_response.html b/scipost_django/templates/email/eic/referee_response.html index eb47c81a93da4dbc716284400975a9228a34a68d..bde0688f68bd71bfb15b5b316aedd106f2d40e5f 100644 --- a/scipost_django/templates/email/eic/referee_response.html +++ b/scipost_django/templates/email/eic/referee_response.html @@ -11,7 +11,7 @@ {% if not invitation.accepted %} <p> - Please invite another referee from the Submission's <a href="https://{{ request.get_host }}{% url 'submissions:editorial_page' invitation.submission.preprint.identifier_w_vn_nr %}">editorial page</a>. + Please invite another referee from the Submission's <a href="https://{{ domain }}{% url 'submissions:editorial_page' invitation.submission.preprint.identifier_w_vn_nr %}">editorial page</a>. </p> {% endif %} diff --git a/scipost_django/templates/email/eic/referee_unresponsive.html b/scipost_django/templates/email/eic/referee_unresponsive.html index 931aaaa0d434dba999b899ac9e3d06fdc4901b21..0edde5f2bdab05c3974a72f37c455ae2fd9c0026 100644 --- a/scipost_django/templates/email/eic/referee_unresponsive.html +++ b/scipost_django/templates/email/eic/referee_unresponsive.html @@ -5,13 +5,13 @@ Referee {{ invitation.get_title_display }} {{ invitation.last_name }}, whom you invited to referee Submission <br><br> - <a href="https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }}">{{ invitation.submission.title }}</a> + <a href="https://{{ domain }}{{ invitation.submission.get_absolute_url }}">{{ invitation.submission.title }}</a> <br>by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}),<br> + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}),<br> has failed to respond to the invitation (after being sent {{ invitation.nr_reminders }} reminders). </p> <p> - Unless you are confident that this referee will really deliver a Report, and to ensure that this Submission does not suffer from unnecessary delays in processing, you should ideally invite a replacement referee using the tools on the <a href="https://{{ request.get_host }}{% url 'submissions:editorial_page' invitation.submission.preprint.identifier_w_vn_nr %}">Editorial page</a>. + Unless you are confident that this referee will really deliver a Report, and to ensure that this Submission does not suffer from unnecessary delays in processing, you should ideally invite a replacement referee using the tools on the <a href="https://{{ domain }}{% url 'submissions:editorial_page' invitation.submission.preprint.identifier_w_vn_nr %}">Editorial page</a>. </p> <p> We are very grateful for your prompt action. diff --git a/scipost_django/templates/email/eic/submission_reappointment.html b/scipost_django/templates/email/eic/submission_reappointment.html index c3a9236e45101133e3f0f6f28a1005a01db6a42a..74f007efda3102eceb46b144cd56e09423c9b6b1 100644 --- a/scipost_django/templates/email/eic/submission_reappointment.html +++ b/scipost_django/templates/email/eic/submission_reappointment.html @@ -12,10 +12,10 @@ have resubmitted their manuscript. </p> <p> - As Editor-in-charge, you can take your editorial actions from the submission's <a href="https://{{ request.get_host }}{% url 'submissions:editorial_page' submission.preprint.identifier_w_vn_nr %}">editorial page</a>, which is also accessible from your <a href="https://{{ request.get_host }}{% url 'scipost:personal_page' %}">personal page</a> under the Editorial Actions tab. + As Editor-in-charge, you can take your editorial actions from the submission's <a href="https://{{ domain }}{% url 'submissions:editorial_page' submission.preprint.identifier_w_vn_nr %}">editorial page</a>, which is also accessible from your <a href="https://{{ domain }}{% url 'scipost:personal_page' %}">personal page</a> under the Editorial Actions tab. </p> <p> - You can either take an immediate acceptance/rejection decision, quickly consult previous referees or run a new refereeing round, in which case you should now invite at least 3 referees; you might want to make sure you are aware of the detailed procedure described in the <a href="https://{{ request.get_host }}{% url 'scipost:EdCol_by-laws' %}">Editorial College by-laws</a>. + You can either take an immediate acceptance/rejection decision, quickly consult previous referees or run a new refereeing round, in which case you should now invite at least 3 referees; you might want to make sure you are aware of the detailed procedure described in the <a href="https://{{ domain }}{% url 'scipost:EdCol_by-laws' %}">Editorial College by-laws</a>. </p> <p> Many thanks in advance for your collaboration,<br> diff --git a/scipost_django/templates/email/email_assigned_invitation_officer.html b/scipost_django/templates/email/email_assigned_invitation_officer.html index 7ef74dd1bdd8691197b090839ab048f9be3cb9ad..38b2e384ae1192c879caba52ca13c02c55156f36 100644 --- a/scipost_django/templates/email/email_assigned_invitation_officer.html +++ b/scipost_django/templates/email/email_assigned_invitation_officer.html @@ -11,7 +11,7 @@ Production Supervisor: {{ stream.supervisor }} </p> <p> - The stream will now be open for you on the <a href="https://{{ request.get_host }}{% url 'production:production' %}">Production page</a>. + The stream will now be open for you on the <a href="https://{{ domain }}{% url 'production:production' %}">Production page</a>. </p> diff --git a/scipost_django/templates/email/email_assigned_invitation_officer.txt b/scipost_django/templates/email/email_assigned_invitation_officer.txt index 360e1388d3714631cad0843b668842bd9bcbaa2d..eff57aa55183b4e88e8d8f2b00f5ccb5f295937c 100644 --- a/scipost_django/templates/email/email_assigned_invitation_officer.txt +++ b/scipost_django/templates/email/email_assigned_invitation_officer.txt @@ -6,6 +6,6 @@ You are now assigned as Invitations Officer to the stream Production Supervisor: {{ stream.supervisor }} -The stream will now be open for you on the Production page (https://scipost.org{% url 'production:production' %}). +The stream will now be open for you on the Production page (https://{{ domain }}{% url 'production:production' %}). This mail is automatically generated and therefore not signed. diff --git a/scipost_django/templates/email/email_assigned_production_officer.html b/scipost_django/templates/email/email_assigned_production_officer.html index 9ba06d8fadf103ce2fc09e44ca91b93ba19755f7..ea86777a8133090d8124996e1bea998c702a8566 100644 --- a/scipost_django/templates/email/email_assigned_production_officer.html +++ b/scipost_django/templates/email/email_assigned_production_officer.html @@ -11,7 +11,7 @@ Production Supervisor: {{ stream.supervisor }} </p> <p> - The stream will now be open for you on the <a href="https://{{ request.get_host }}{% url 'production:production' %}">Production page</a>. + The stream will now be open for you on the <a href="https://{{ domain }}{% url 'production:production' %}">Production page</a>. </p> diff --git a/scipost_django/templates/email/email_assigned_production_officer.txt b/scipost_django/templates/email/email_assigned_production_officer.txt index e1ae345fe3fbc306f3ac8a7b23086089a241b950..36964529eb1526ad7cf850d5dc0e1f049121309f 100644 --- a/scipost_django/templates/email/email_assigned_production_officer.txt +++ b/scipost_django/templates/email/email_assigned_production_officer.txt @@ -6,6 +6,6 @@ You are now assigned as Production Officer to the stream Production Supervisor: {{ stream.supervisor }} -The stream will now be open for you on the Production page (https://scipost.org{% url 'production:production' %}). +The stream will now be open for you on the Production page (https://{{ domain }}{% url 'production:production' %}). This mail is automatically generated and therefore not signed. diff --git a/scipost_django/templates/email/email_assigned_supervisor.html b/scipost_django/templates/email/email_assigned_supervisor.html index df3d9aadc98daef7c4b1c3bfa7d07006b47fc78c..b83eddd5efdc4de6855adb361dce5bfc8995063a 100644 --- a/scipost_django/templates/email/email_assigned_supervisor.html +++ b/scipost_django/templates/email/email_assigned_supervisor.html @@ -9,7 +9,7 @@ {{ stream }} </p> <p> - The stream will now be open for you on the <a href="https://{{ request.get_host }}{% url 'production:production' %}">Production page</a>. + The stream will now be open for you on the <a href="https://{{ domain }}{% url 'production:production' %}">Production page</a>. </p> diff --git a/scipost_django/templates/email/email_assigned_supervisor.txt b/scipost_django/templates/email/email_assigned_supervisor.txt index f4f08883196c2c097a9177aab4c58cc8fc4b4404..3fd36a20ac49cd5c76a6a42865a775e3eabc32ae 100644 --- a/scipost_django/templates/email/email_assigned_supervisor.txt +++ b/scipost_django/templates/email/email_assigned_supervisor.txt @@ -4,6 +4,6 @@ You are now assigned as Production Supervisor to the stream {{ stream }} -The stream will now be open for you on the Production page (https://scipost.org{% url 'production:production' %}). +The stream will now be open for you on the Production page (https://{{ domain }}{% url 'production:production' %}). This mail is automatically generated and therefore not signed. diff --git a/scipost_django/templates/email/email_comment_made_citable.html b/scipost_django/templates/email/email_comment_made_citable.html index f87886b1f2434fcfcfb8bdd236afc0f171909457..c49dc6a4f7e2b398dc983ef9defbad3eb7f479f9 100644 --- a/scipost_django/templates/email/email_comment_made_citable.html +++ b/scipost_django/templates/email/email_comment_made_citable.html @@ -3,7 +3,7 @@ <p> The Comment you have submitted, concerning publication with title - {{ comment.core_content_object.title }} by {% if comment.core_content_object.author_list %}{{ comment.core_content_object.author_list }}{% elif comment.core_content_object.author %}{{ comment.core_content_object.author }}{% endif %} (<a href="https://{{ request.get_host }}{{ comment.get_absolute_url }}">see on SciPost.org</a>) + {{ comment.core_content_object.title }} by {% if comment.core_content_object.author_list %}{{ comment.core_content_object.author_list }}{% elif comment.core_content_object.author %}{{ comment.core_content_object.author }}{% endif %} (<a href="https://{{ domain }}{{ comment.get_absolute_url }}">see on SciPost.org</a>) has been ascribed DOI <a href="//doi.org/{{ comment.doi_string }}">{{ comment.doi_string }}</a> (https://doi.org/{{ comment.doi_string }}), and is thus now citable in the form: </p> <p> diff --git a/scipost_django/templates/email/email_comment_made_citable.txt b/scipost_django/templates/email/email_comment_made_citable.txt index 19ca71e2b72e432edad065bec437614e23d618a8..19ce7c6f55ecc3c2368a037ff4697317c92f8d55 100644 --- a/scipost_django/templates/email/email_comment_made_citable.txt +++ b/scipost_django/templates/email/email_comment_made_citable.txt @@ -1,7 +1,7 @@ Dear {{ comment.author.get_title_display }} {{ comment.author.user.last_name }}, The Comment you have submitted, concerning publication with title -{{comment.core_content_object.title}} by {% if comment.core_content_object.author_list %}{{comment.core_content_object.author_list}}{% elif comment.core_content_object.author %}{{comment.core_content_object.author}}{% endif %} (https://scipost.org{{comment.get_absolute_url}}) +{{ comment.core_content_object.title }} by {% if comment.core_content_object.author_list %}{{ comment.core_content_object.author_list }}{% elif comment.core_content_object.author %}{{ comment.core_content_object.author }}{% endif %} (https://{{ domain }}{{ comment.get_absolute_url }}) has been ascribed DOI {{ comment.doi_string }} (https://doi.org/{{ comment.doi_string }}), and is thus now citable in the form: {{ comment.citation }}. diff --git a/scipost_django/templates/email/email_report_made_citable.html b/scipost_django/templates/email/email_report_made_citable.html index ca9b259714e9728b70364f45309df33b10e41537..43eecf7dbc88d0ea92a43c1502ba15060be5242b 100644 --- a/scipost_django/templates/email/email_report_made_citable.html +++ b/scipost_django/templates/email/email_report_made_citable.html @@ -23,8 +23,8 @@ The SciPost Team </p> {% if report.anonymous %} -<p> - P.S.: When submitting your Report, you chose to remain anonymous. We generally encourage (but in no way require) our referees to sign their contributions, in order to foster greater transparency and allow you to get full recognition for your valuable refereeing work. Should you wish to sign your Report (even post-facto; this can be done at any time), simply navigate to your <a href="https://scipost.org/personal_page">personal page</a> under the Refereeing tab, where you will find a link allowing you to do so (after which we will update your Report's DOI metadata, and make your signature publicly visible). + <p> + P.S.: When submitting your Report, you chose to remain anonymous. We generally encourage (but in no way require) our referees to sign their contributions, in order to foster greater transparency and allow you to get full recognition for your valuable refereeing work. Should you wish to sign your Report (even post-facto; this can be done at any time), simply navigate to your <a href="https://{{ domain }}{% url 'scipost:personal_page' %}">personal page</a> under the Refereeing tab, where you will find a link allowing you to do so (after which we will update your Report's DOI metadata, and make your signature publicly visible). </p> {% endif %} diff --git a/scipost_django/templates/email/email_report_made_citable.txt b/scipost_django/templates/email/email_report_made_citable.txt index a6c85f85470a84ac934fd6b202312a3ca092dc5f..f5bee0d7d0b95bf800e53b9f64cd2b5909347267 100644 --- a/scipost_django/templates/email/email_report_made_citable.txt +++ b/scipost_django/templates/email/email_report_made_citable.txt @@ -15,5 +15,5 @@ We thank you again very much for your contribution. The SciPost Team {% if report.anonymous %} -P.S.: When submitting your Report, you chose to remain anonymous. We generally encourage (but in no way require) our referees to sign their contributions, in order to foster greater transparency and allow you to get full recognition for your valuable refereeing work. Should you wish to sign your Report (even post-facto; this can be done at any time), simply navigate to your <a href="https://scipost.org/personal_page">personal page</a> under the Refereeing tab, where you will find a link allowing you to do so (after which we will update your Report's DOI metadata, and make your signature publicly visible). +P.S.: When submitting your Report, you chose to remain anonymous. We generally encourage (but in no way require) our referees to sign their contributions, in order to foster greater transparency and allow you to get full recognition for your valuable refereeing work. Should you wish to sign your Report (even post-facto; this can be done at any time), simply navigate to your <a href="https://{{ domain }}{% url 'scipost:personal_page' %}">personal page</a> under the Refereeing tab, where you will find a link allowing you to do so (after which we will update your Report's DOI metadata, and make your signature publicly visible). {% endif %} diff --git a/scipost_django/templates/email/fellows/email_fellow_assigned_submission.html b/scipost_django/templates/email/fellows/email_fellow_assigned_submission.html index 50e23ca2163603e6d16eb31fa5355dcd508b5c0d..045bddb2f4ab24f7ec9f657b2e1539799a5de247 100644 --- a/scipost_django/templates/email/fellows/email_fellow_assigned_submission.html +++ b/scipost_django/templates/email/fellows/email_fellow_assigned_submission.html @@ -4,9 +4,9 @@ Thank you for accepting to become Editor-in-charge of the SciPost Submission {{ assignment.submission.title }} by {{ assignment.submission.author_list }}. -You can take your editorial actions from <a href="https://{{ request.get_host }}{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">the editorial page</a>. +You can take your editorial actions from <a href="https://{{ domain }}{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">the editorial page</a>. -In particular, you should now make sure at least 3 referees have been invited; you might want to make sure you are aware of the detailed procedure described in <a href="https://{{ request.get_host }}{% url 'scipost:EdCol_by-laws' %}">the Editorial College by-laws</a>. +In particular, you should now make sure at least 3 referees have been invited; you might want to make sure you are aware of the detailed procedure described in <a href="https://{{ domain }}{% url 'scipost:EdCol_by-laws' %}">the Editorial College by-laws</a>. Many thanks in advance for your collaboration, diff --git a/scipost_django/templates/email/fellows/email_fellow_fellowship_start.html b/scipost_django/templates/email/fellows/email_fellow_fellowship_start.html index d1aa06a7f155d40f464b0a9f7aa052378cdb0925..8a31a178d7358e70fa359715ae20531d0129f764 100644 --- a/scipost_django/templates/email/fellows/email_fellow_fellowship_start.html +++ b/scipost_django/templates/email/fellows/email_fellow_fellowship_start.html @@ -1,17 +1,17 @@ <p>Dear {{ object.contributor.profile.get_title_display }} {{ object.contributor.user.last_name }},</p> <p>Many thanks for accepting to become an Editorial Fellow at SciPost! We wish you a very warm welcome, and very much appreciate your willingness to help out.</p> -<p>Your account has now been given Fellow-level rights, so you now have access to a few additional Fellows-only pages. We have also included you in our list of Fellows at our <a href="https://{{ request.get_host }}{% url 'colleges:colleges' %}">Colleges page</a>.</p> +<p>Your account has now been given Fellow-level rights, so you now have access to a few additional Fellows-only pages. We have also included you in our list of Fellows at our <a href="https://{{ domain }}{% url 'colleges:colleges' %}">Colleges page</a>.</p> <p>This email is meant as a quick helper to make sure everything is set up properly, and to help you start finding your way around our systems.</p> <h3>Making sure your data is correct</h3> -<p>From your <a href="https://{{ request.get_host }}{% url 'scipost:personal_page' %}">personal page</a>, please have a look at the basic information associated to your account (in particular, your areas of specialization). If necessary, please update the data by following the "Update your personal data" link.</p> -<p>Though we do not require it, we greatly encourage you to use our two-factor authentication setup (see <a a href="https://{{ request.get_host }}{% url 'scipost:totp' %}">this link</a>) to ensure that your account is robust against hacking attempts.</p> +<p>From your <a href="https://{{ domain }}{% url 'scipost:personal_page' %}">personal page</a>, please have a look at the basic information associated to your account (in particular, your areas of specialization). If necessary, please update the data by following the "Update your personal data" link.</p> +<p>Though we do not require it, we greatly encourage you to use our two-factor authentication setup (see <a a href="https://{{ domain }}{% url 'scipost:totp' %}">this link</a>) to ensure that your account is robust against hacking attempts.</p> <h3>Your new Fellows-only pages</h3> -<p>Again on your personal page, you should now see an "Editorial Actions" tab. This contains a number of links relevant to our editorial processes, most importantly to the <a href="https://{{ request.get_host }}{% url 'submissions:pool' %}">submissions pool</a>, which is the place where all submissions currently under consideration are listed. As a newcomer, this will be more or less empty for you, but will fill as new submissions come in.</p> -<p>To get an idea of the editorial workflow, the best is to look at the <a href="https://{{ request.get_host }}{% url 'submissions:editorial_workflow' %}">editorial workflow summary</a>.</p> +<p>Again on your personal page, you should now see an "Editorial Actions" tab. This contains a number of links relevant to our editorial processes, most importantly to the <a href="https://{{ domain }}{% url 'submissions:pool' %}">submissions pool</a>, which is the place where all submissions currently under consideration are listed. As a newcomer, this will be more or less empty for you, but will fill as new submissions come in.</p> +<p>To get an idea of the editorial workflow, the best is to look at the <a href="https://{{ domain }}{% url 'submissions:editorial_workflow' %}">editorial workflow summary</a>.</p> <h3>What happens now?</h3> <p>As new submissions come in for which your expertises match, you will start receiving assignment request emails inviting you to take charge of a particular Submission. You are never obliged to do so. Once you do take charge of one, you will be given access to that Submission's Editorial Page from which you will be able to run the refereeing process.</p> <p>You will also regularly be invited to vote on Editorial Recommendations on Submissions which have undergone our refereeing process (we remind you that publication decisions are taken by the College, as a collective).</p> -<p>Everything is more or less self-explanatory, but you are most welcome to email our Editorial Administration at edadmin@scipost.org if you have any questions.</p> +<p>Everything is more or less self-explanatory, but you are most welcome to email our Editorial Administration at edadmin@{{ domain }} if you have any questions.</p> <p>Once per week, you will also receive an email containing a weekly summary of tasks or activities relevant to your activities as Fellow. This email contains handy direct links to the instances concerned.</p> <p>At least once per year, you will be invited to a Virtual General Meeting where SciPost Administration, Advisory Board and Editorial Colleges gather to discuss important points about our activities. You will receive separate email communications concerning these. You can find links to past meetings on our site's top navbar, under the "Logged in as ..." submenu.</p> <h3>Thank you again</h3> diff --git a/scipost_django/templates/email/fellows/email_fellow_replaced_by_other.html b/scipost_django/templates/email/fellows/email_fellow_replaced_by_other.html index 611e48acb9d5e868cf0491e5cce8372962e0673c..8adb78387761abe8826eec904ec1e9c03ede890d 100644 --- a/scipost_django/templates/email/fellows/email_fellow_replaced_by_other.html +++ b/scipost_django/templates/email/fellows/email_fellow_replaced_by_other.html @@ -4,7 +4,7 @@ We have deprecated your assignment as Editor-in-charge of Submission {{ assignment.submission.title }} by {{ assignment.submission.author_list }}. -To see your current active assignments, check <a href="https://{{ request.get_host }}{% url 'submissions:pool' %}?editor_in_charge=on.">the Pool</a>. +To see your current active assignments, check <a href="https://{{ domain }}{% url 'submissions:pool' %}?editor_in_charge=on.">the Pool</a>. Many thanks for your valuable work, diff --git a/scipost_django/templates/email/fellows/email_fellow_tasklist.html b/scipost_django/templates/email/fellows/email_fellow_tasklist.html index 692349b809751252d878f15edd56ccd9137edddc..958326c3db5bb9237b2ae0cfa30e343a9457b97d 100644 --- a/scipost_django/templates/email/fellows/email_fellow_tasklist.html +++ b/scipost_django/templates/email/fellows/email_fellow_tasklist.html @@ -5,13 +5,13 @@ {% if nr_potfels_to_vote_on > 0 %} <br/> <h3>Nominations to the Editorial College</h3> -<p>You have {{ nr_potfels_to_vote_on }} nomination{{ nr_potfels_to_vote_on|pluralize }} to vote on, please visit the <a href="https://{{ request.get_host }}{% url 'colleges:potential_fellowships' %}">Potential Fellowships</a> page to cast your vote{{ nr_potfels_to_vote_on|pluralize }}.</p> +<p>You have {{ nr_potfels_to_vote_on }} nomination{{ nr_potfels_to_vote_on|pluralize }} to vote on, please visit the <a href="https://{{ domain }}{% url 'colleges:potential_fellowships' %}">Potential Fellowships</a> page to cast your vote{{ nr_potfels_to_vote_on|pluralize }}.</p> {% endif %} {% if recs_to_vote_on %} <br/> <h3>Recommendations for you to vote on</h3> - <p>Please go to the <a href="https://{{ request.get_host }}{% url 'submissions:pool' %}">pool</a> to cast your vote on:</p> + <p>Please go to the <a href="https://{{ domain }}{% url 'submissions:pool' %}">pool</a> to cast your vote on:</p> <ul> {% for rec in recs_to_vote_on %} <li>{{ rec.submission.title }}</li> @@ -26,7 +26,7 @@ {% for assignment in assignments_to_consider %} <li> On submission: {{ assignment.submission }}<br> - <a href="https://{{ request.get_host }}{% url 'submissions:assignment_request' assignment.id %}">Accept or decline here</a> + <a href="https://{{ domain }}{% url 'submissions:assignment_request' assignment.id %}">Accept or decline here</a> </li> {% endfor %} </ul> @@ -38,12 +38,12 @@ <ul> {% for assignment in assignments_ongoing %} <li> - <h3><a href="https://{{ request.get_host }}{% url 'submissions:submission' assignment.submission.preprint.identifier_w_vn_nr %}">{{ assignment.submission.title }}</a></h3> + <h3><a href="https://{{ domain }}{% url 'submissions:submission' assignment.submission.preprint.identifier_w_vn_nr %}">{{ assignment.submission.title }}</a></h3> <p> <em>by {{ assignment.submission.author_list }}</em> </p> {% if assignment.submission.cycle.has_required_actions %} - <h3>Required actions (go to the <a href="https://{{ request.get_host }}{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">Editorial page</a> to carry them out):</h3> + <h3>Required actions (go to the <a href="https://{{ domain }}{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">Editorial page</a> to carry them out):</h3> <ul> {% for code, action in assignment.submission.cycle.required_actions.items %} <li>{{ action|safe }}</li> @@ -65,12 +65,12 @@ <ul> {% for assignment in assignments_upcoming_deadline %} <li> - <h3><a href="https://{{ request.get_host }}{% url 'submissions:pool' assignment.submission.preprint.identifier_w_vn_nr %}">{{ assignment.submission.title }}</a></h3> + <h3><a href="https://{{ domain }}{% url 'submissions:pool' assignment.submission.preprint.identifier_w_vn_nr %}">{{ assignment.submission.title }}</a></h3> <p> <em>by {{ assignment.submission.author_list }}</em> </p> <p>Refereeing deadline: {{ assignment.submission.reporting_deadline|date:"Y-m-d" }}.</p> - <p><em>You can manage this Submission from its </em><a href="https://{{ request.get_host }}{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">Editorial page</a>.</p> + <p><em>You can manage this Submission from its </em><a href="https://{{ domain }}{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">Editorial page</a>.</p> </li> {% endfor %} </ul> diff --git a/scipost_django/templates/email/helpdesk/followup_on_ticket.html b/scipost_django/templates/email/helpdesk/followup_on_ticket.html index d665d83399988a7eb8ff4eec94c02677bb95f3a9..12200bcc1a1af5c37283dd03f0753586607bd6b0 100644 --- a/scipost_django/templates/email/helpdesk/followup_on_ticket.html +++ b/scipost_django/templates/email/helpdesk/followup_on_ticket.html @@ -6,7 +6,7 @@ <hr> {{ followup.text|automarkup }} <hr> -<p>You can view details (and optionally take further steps) by navigating to the <a href="https://{{ request.get_host }}{{ followup.ticket.get_absolute_url }}">ticket's page</a> (login required). You can also see this ticket on your personal list at our online <a href="https://scipost.org/helpdesk/">helpdesk</a>.</p> +<p>You can view details (and optionally take further steps) by navigating to the <a href="https://{{ domain }}{{ followup.ticket.get_absolute_url }}">ticket's page</a> (login required). You can also see this ticket on your personal list at our online <a href="https://{{ domain }}{% url 'helpdesk:helpdesk' %}"</a>.</p> <p> Many thanks,<br> The SciPost Team. diff --git a/scipost_django/templates/email/org_contacts/contactperson_followup_mail.html b/scipost_django/templates/email/org_contacts/contactperson_followup_mail.html index e0a0b5f60fa8bb4a77ab2fcca76f6c2fbd152c97..095fe6e32b25b92a3c9e5b85026d97536381327c 100644 --- a/scipost_django/templates/email/org_contacts/contactperson_followup_mail.html +++ b/scipost_django/templates/email/org_contacts/contactperson_followup_mail.html @@ -1,3 +1,4 @@ +{% load static %} <p> Dear {% if contactperson %}{{ contactperson.get_title_display }} {{ contactperson.last_name }}{% else %}colleagues{% endif %}, </p> @@ -5,13 +6,13 @@ We recently contacted you concerning SciPost, to probe your organization's interest in becoming a Sponsor. With this follow-up email, I would simply like to check whether you got the original message. </p> <p> - <a href="https://scipost.org">SciPost</a> is a next-generation publication portal aiming to transform the business of scientific publishing. You can find a one-page summary in <a href="https://scipost.org/static/sponsors/SciPost_Sponsors_Board_Prospectus.pdf">our online prospectus</a> outlining the reasons why joining would be beneficial for your institution. + <a href="https://{% url 'scipost:index' %}">SciPost</a> is a next-generation publication portal aiming to transform the business of scientific publishing. You can find a one-page summary in <a href="https://{{ domain }}{% static 'sponsors/SciPost_Sponsors_Board_Prospectus.pdf' %}">our online prospectus</a> outlining the reasons why joining would be beneficial for your institution. </p> <p> - You can also find a summary of how your organization has benefitted from our activities at <a href="https://{{ request.get_host }}{{ contactperson.organization.get_absolute_url }}">this link</a>. + You can also find a summary of how your organization has benefitted from our activities at <a href="https://{{ domain }}{{ contactperson.organization.get_absolute_url }}">this link</a>. </p> <p> - I will be happy to provide any required further details. If you are interested, you can simply get in touch via this address (sponsors@scipost.org). I sincerely hope that SciPost will be able to count on your support. + I will be happy to provide any required further details. If you are interested, you can simply get in touch via this address (sponsors@{{ domain }}). I sincerely hope that SciPost will be able to count on your support. </p> <p> If you not the right representative to get in touch with, could you please forward this to the right person, or let us know? diff --git a/scipost_django/templates/email/org_contacts/contactperson_initial_mail.html b/scipost_django/templates/email/org_contacts/contactperson_initial_mail.html index 158276141e216fd2df65bf9ecbaca50d39c23e83..bfcaebcc4d73b14b9d91eb676f8829705b48452a 100644 --- a/scipost_django/templates/email/org_contacts/contactperson_initial_mail.html +++ b/scipost_django/templates/email/org_contacts/contactperson_initial_mail.html @@ -1,3 +1,4 @@ +{% load static %} <p> Dear {% if contactperson %}{{ contactperson.get_title_display }} {{ contactperson.last_name }}{% else %}colleagues{% endif %}, </p> @@ -5,22 +6,22 @@ You might by now have heard of SciPost, a scientists-driven not-for-profit initiative whose mission is to provide an improved academic publishing infrastructure. </p> <p> - The site is anchored at <a href="https://scipost.org">SciPost.org</a>. Many further details about SciPost, its principles, ideals and implementation can be found at the <a href="https://scipost.org/about">about page</a> and <a href="https://scipost.org/FAQ">our FAQ</a>. + The site is anchored at <a href="https://{{ domain }}{% url 'scipost:index' %}">SciPost.org</a>. Many further details about SciPost, its principles, ideals and implementation can be found at the <a href="https://{{ domain }}{% url 'scipost:about' %}">about page</a> and <a href="https://{{ domain }}{% url 'scipost:FAQ' %}">our FAQ</a>. </p> <p> - You can also find a summary of how your organization has benefitted from our activities at <a href="https://{{ request.get_host }}{{ contactperson.organization.get_absolute_url }}">this link</a>. There, you will find an overview of publications, authors and Fellows (our editors) which have an affiliation to your organization. + You can also find a summary of how your organization has benefitted from our activities at <a href="https://{{ domain }}{{ contactperson.organization.get_absolute_url }}">this link</a>. There, you will find an overview of publications, authors and Fellows (our editors) which have an affiliation to your organization. </p> <p> - As explained on our <a href="https://scipost.org/finances/business_model/">business model</a> page, SciPost follows a completely different funding model than traditional publishers, and provides a cost-slashing alternative to existing platforms. SciPost charges neither subscription fees, nor article processing charges; its activities are instead collectively financed by a worldwide consortium of Sponsors, formed by institutions and organizations which directly or indirectly benefit from SciPost’s activities. + As explained on our <a href="https://{{ domain }}{% url 'finances:business_model' %}">business model</a> page, SciPost follows a completely different funding model than traditional publishers, and provides a cost-slashing alternative to existing platforms. SciPost charges neither subscription fees, nor article processing charges; its activities are instead collectively financed by a worldwide consortium of Sponsors, formed by institutions and organizations which directly or indirectly benefit from SciPost’s activities. </p> <p> - A short summary, together with motivations for your organization to become a sponsor, are given in <a href="https://scipost.org/static/sponsors/SciPost_Sponsors_Board_Prospectus.pdf">our one-page prospectus</a>. + A short summary, together with motivations for your organization to become a sponsor, are given in <a href="https://{{ domain }}{% static 'sponsors/SciPost_Sponsors_Board_Prospectus.pdf' %}">our one-page prospectus</a>. </p> <p> - In <a href="https://scipost.org/static/sponsors/SciPost_Sponsorship_Agreement.pdf">the agreement template</a>, you will find many more specific details about our operations, requirements and funding strategy. + In <a href="https://{{ domain }}{% static 'sponsors/SciPost_Sponsorship_Agreement.pdf' %}">the agreement template</a>, you will find many more specific details about our operations, requirements and funding strategy. </p> <p> - It would be a privilege to welcome your organization as a Sponsor. I am hereby contacting you to enquire whether your institution would consider joining? If you are interested, you can simply get in touch via this address (sponsors@scipost.org). I sincerely hope that SciPost will be able to count on your support. + It would be a privilege to welcome your organization as a Sponsor. I am hereby contacting you to enquire whether your institution would consider joining? If you are interested, you can simply get in touch via this address (sponsors@{{ domain }}). I sincerely hope that SciPost will be able to count on your support. </p> <p> diff --git a/scipost_django/templates/email/org_contacts/contactrole_subsidy_renewal_mail.html b/scipost_django/templates/email/org_contacts/contactrole_subsidy_renewal_mail.html index 73b3b812863044c3268b8353da701a08086226ff..8e42d4683203854310b8d630dc283e0cbd2e5bbc 100644 --- a/scipost_django/templates/email/org_contacts/contactrole_subsidy_renewal_mail.html +++ b/scipost_django/templates/email/org_contacts/contactrole_subsidy_renewal_mail.html @@ -2,7 +2,7 @@ Dear {{ object.contact.get_title_display }} {{ object.contact.user.last_name }}, </p> <p> - Your organization ({{ object.organization }}) has been sponsoring SciPost (see details at <a href="https://{{ request.get_host }}{{ object.organization.get_absolute_url }}">this link</a>), for which we are extremely grateful. + Your organization ({{ object.organization }}) has been sponsoring SciPost (see details at <a href="https://{{ domain }}{{ object.organization.get_absolute_url }}">this link</a>), for which we are extremely grateful. </p> <p> Your latest sponsorship period ends on {{ object.organization.latest_subsidy_date_until }}. We would be extremely grateful for your continued support, and would hereby like to enquire whether we can start the renewal procedure. diff --git a/scipost_django/templates/email/org_contacts/email_contact_for_activation.html b/scipost_django/templates/email/org_contacts/email_contact_for_activation.html index 36a716660f1d9c15cab972c08b40529d1c68fdb1..f3e255a60dd8e4f65683535d981b0bdc86e0d62d 100644 --- a/scipost_django/templates/email/org_contacts/email_contact_for_activation.html +++ b/scipost_django/templates/email/org_contacts/email_contact_for_activation.html @@ -1,10 +1,10 @@ <p>Dear {{ contact.get_title_display }} {{ contact.user.last_name }},</p> <p> - Many thanks for sponsoring SciPost. We have now created a personal account for you on scipost.org, which will allow you to access all relevant information and functionalities related to sponsoring. + Many thanks for sponsoring SciPost. We have now created a personal account for you on {{ domain }}, which will allow you to access all relevant information and functionalities related to sponsoring. </p> <p> - In order to activate your account, please navigate to <a href="https://{{ request.get_host }}{% url 'organizations:activate_account' contact.activation_key %}?email={{ contact.user.email }}">this link</a>. You will be asked to choose a password, after which you will be able to login (your username being defined as your email address). + In order to activate your account, please navigate to <a href="https://{{ domain }}{% url 'organizations:activate_account' contact.activation_key %}?email={{ contact.user.email }}">this link</a>. You will be asked to choose a password, after which you will be able to login (your username being defined as your email address). </p> <p> After logging in, you will find a “Org dashboard†link in the top menu, which will take you to your info page, where you will find further links for managing your account and the associated data (in particular, the public visibility settings of your sponsorship amounts and associated documents). diff --git a/scipost_django/templates/email/potentialfellowships/invite_potential_fellow_initial.html b/scipost_django/templates/email/potentialfellowships/invite_potential_fellow_initial.html index 87e2d3e7428ab64600d8c78cbe5c4ed2fbe8f923..fe42bc9d9a40cfca887d0c26ca1c8cfc1dcbdb28 100644 --- a/scipost_django/templates/email/potentialfellowships/invite_potential_fellow_initial.html +++ b/scipost_django/templates/email/potentialfellowships/invite_potential_fellow_initial.html @@ -1,14 +1,14 @@ <p>Dear {{ object.profile.get_title_display }} {{ object.profile.last_name }},</p> -<p>Hopefully you're aware of <a href="https://{{ request.get_host }}{% url 'scipost:index' %}">SciPost</a> and of its mission to establish a healthier community-run, open and not-for-profit infrastructure for scientific publishing (see our <a href="https://{{ request.get_host }}{% url 'scipost:about' %}">about page</a> for a quick introduction or reminder).</p> +<p>Hopefully you're aware of <a href="https://{{ domain }}{% url 'scipost:index' %}">SciPost</a> and of its mission to establish a healthier community-run, open and not-for-profit infrastructure for scientific publishing (see our <a href="https://{{ domain }}{% url 'scipost:about' %}">about page</a> for a quick introduction or reminder).</p> -{% if object.profile.acad_field %}{% if object.profile.acad_field.slug != 'physics' %}<p>Having successfully initiated our activities in the field of Physics, we would now like to bring the benefits of our approach to scientists in other fields of science, in particular {{ object.profile.acad_field }}. We are therefore launching <a href="https://{{ request.get_host }}{% url 'journals:journals' %}?field={{ object.profile.acad_field }}">new journals in {{ object.profile.acad_field }}</a>, aiming to achieve the same success we have had with our <a href="https://{{ request.get_host }}{% url 'journals:journals' %}?field=physics">Physics journals</a>.{% endif %}{% endif %} +{% if object.profile.acad_field %}{% if object.profile.acad_field.slug != 'physics' %}<p>Having successfully initiated our activities in the field of Physics, we would now like to bring the benefits of our approach to scientists in other fields of science, in particular {{ object.profile.acad_field }}. We are therefore launching <a href="https://{{ domain }}{% url 'journals:journals' %}?field={{ object.profile.acad_field }}">new journals in {{ object.profile.acad_field }}</a>, aiming to achieve the same success we have had with our <a href="https://{{ domain }}{% url 'journals:journals' %}?field=physics">Physics journals</a>.{% endif %}{% endif %} <p>On behalf of the SciPost Foundation and in view of your professional expertise and reputation, I hereby would like to invite you to join the {{ object.college }} by becoming one of our Editorial Fellows.</p> -<p>Academic reputation is the most important criterion guiding our considerations of who should belong to our Editorial Colleges. The current list of Colleges and their Fellows can be found at <a href="https://{{ request.get_host }}{% url 'colleges:colleges' %}">this page</a>. Our ambition is none other than to assemble the most reputed editorial team of any publishing system available worldwide.</p> +<p>Academic reputation is the most important criterion guiding our considerations of who should belong to our Editorial Colleges. The current list of Colleges and their Fellows can be found at <a href="https://{{ domain }}{% url 'colleges:colleges' %}">this page</a>. Our ambition is none other than to assemble the most reputed editorial team of any publishing system available worldwide.</p> -<p>We do not pose any conditions on your involvement, and you will always remain in complete control of your level of commitment (a couple of hours per month would already be significant). Functioning of the Colleges proceeds according to the <a href="https://{{ request.get_host }}{% url 'scipost:EdCol_by-laws' %}">by-laws</a>, and a short summary of the editorial workflow can be found at <a href="https://{{ request.get_host }}{% url 'submissions:editorial_workflow' %}">this page</a>.</p> +<p>We do not pose any conditions on your involvement, and you will always remain in complete control of your level of commitment (a couple of hours per month would already be significant). Functioning of the Colleges proceeds according to the <a href="https://{{ domain }}{% url 'scipost:EdCol_by-laws' %}">by-laws</a>, and a short summary of the editorial workflow can be found at <a href="https://{{ domain }}{% url 'submissions:editorial_workflow' %}">this page</a>.</p> <p>I would be very happy to provide you with more information should you require it. Could I beg you to give us a response (by replying to this email) within the next couple of weeks?</p> diff --git a/scipost_django/templates/email/production_send_proofs.html b/scipost_django/templates/email/production_send_proofs.html index 5e4bce0aaf32a102356478ea6e9eecb68ded1cff..7c64ccd0e489d796b55be62d813e414798270200 100644 --- a/scipost_django/templates/email/production_send_proofs.html +++ b/scipost_django/templates/email/production_send_proofs.html @@ -3,7 +3,7 @@ </p> <p> - The SciPost production team has finished the proofs of your manuscript (version {{ proofs.version }}). You can find the proofs on your <a href="https://{{ request.get_host }}{{ proofs.stream.submission.get_absolute_url }}">submission's page</a>. + The SciPost production team has finished the proofs of your manuscript (version {{ proofs.version }}). You can find the proofs on your <a href="https://{{ domain }}{{ proofs.stream.submission.get_absolute_url }}">submission's page</a>. </p> <p> diff --git a/scipost_django/templates/email/publication_ready.html b/scipost_django/templates/email/publication_ready.html index e6aa4954b6dd4a8789c3fe93b161b2ec2d098331..7fc41ac0c0d87e954702b02e55fba1df04014551 100644 --- a/scipost_django/templates/email/publication_ready.html +++ b/scipost_django/templates/email/publication_ready.html @@ -2,7 +2,7 @@ The following Publication is drafted and ready for publication. </p> <p> - <a href="https://{{ request.get_host }}/{{ object.get_absolute_url }}">{{ object.title }}</a><br> + <a href="https://{{ domain }}/{{ object.get_absolute_url }}">{{ object.title }}</a><br> by {{ object.author_list }} </p> <p> diff --git a/scipost_django/templates/email/referees/inform_referee_authors_replied_to_report.html b/scipost_django/templates/email/referees/inform_referee_authors_replied_to_report.html index 6f2ac46ba636d0e567de7c38245649bb5f704f6d..b875d8d67d678cd13c7c78468014e0a3a8ac2700 100644 --- a/scipost_django/templates/email/referees/inform_referee_authors_replied_to_report.html +++ b/scipost_django/templates/email/referees/inform_referee_authors_replied_to_report.html @@ -6,11 +6,11 @@ <br><br> {{ report.submission.title }} <br>by {{ report.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ report.submission.get_absolute_url }} - first submitted {{ report.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ report.submission.get_absolute_url }} - first submitted {{ report.submission.original_submission_date|date:"d M Y" }}). </p> <p> You can view your Report and the associated reply directly at - <a href="https://{{ request.get_host }}{{ report.get_absolute_url }}">this link</a>. + <a href="https://{{ domain }}{{ report.get_absolute_url }}">this link</a>. </p> <p> We thank you very much for your contribution.<br/><br/>The SciPost Team. diff --git a/scipost_django/templates/email/referees/inform_referee_contributor_commented_report.html b/scipost_django/templates/email/referees/inform_referee_contributor_commented_report.html index 07ae44ddf23a6dd1ee0ad4c0a80dcd6db43dfee1..aca1ecc4592b1378639b1d24b20bf701bbed159f 100644 --- a/scipost_django/templates/email/referees/inform_referee_contributor_commented_report.html +++ b/scipost_django/templates/email/referees/inform_referee_contributor_commented_report.html @@ -6,11 +6,11 @@ <br><br> {{ report.submission.title }} <br>by {{ report.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ report.submission.get_absolute_url }} - first submitted {{ report.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ report.submission.get_absolute_url }} - first submitted {{ report.submission.original_submission_date|date:"d M Y" }}). </p> <p> You can view your Report and the associated Comment directly at - <a href="https://{{ request.get_host }}{{ report.get_absolute_url }}">this link</a>. + <a href="https://{{ domain }}{{ report.get_absolute_url }}">this link</a>. </p> <p> We thank you very much for your contribution.<br/><br/>The SciPost Team. diff --git a/scipost_django/templates/email/referees/invite_contributor_to_referee.html b/scipost_django/templates/email/referees/invite_contributor_to_referee.html index 3d43b6a22385457b21cc9882ea46f554abfcdaca..a5af7e8a440893eae2c62f2622b0e722cad8f580 100644 --- a/scipost_django/templates/email/referees/invite_contributor_to_referee.html +++ b/scipost_django/templates/email/referees/invite_contributor_to_referee.html @@ -6,16 +6,16 @@ <br><br> {{ invitation.submission.title }} <br>by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). </p> <p> - Please <a href="https://scipost.org/submissions/accept_or_decline_ref_invitations">accept or decline</a> (login required) this invitation as soon as possible (ideally within the next 2 days). + Please <a href="https://{{ domain }}{% url 'submissions:accept_or_decline_ref_invitations' %}">accept or decline</a> (login required) this invitation as soon as possible (ideally within the next 2 days). </p> <p> - If you accept, your report can be submitted by simply clicking on the "Contribute a Report" link on <a href="https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }}">the Submission Page</a> before the reporting deadline (currently set at {{ invitation.submission.reporting_deadline|date:'d-m-Y' }}; your report will be automatically recognized as an invited report). + If you accept, your report can be submitted by simply clicking on the "Contribute a Report" link on <a href="https://{{ domain }}{{ invitation.submission.get_absolute_url }}">the Submission Page</a> before the reporting deadline (currently set at {{ invitation.submission.reporting_deadline|date:'d-m-Y' }}; your report will be automatically recognized as an invited report). </p> <p> - You might want to make sure you are familiar with our <a href="https://{{ request.get_host }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ request.get_host }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ request.get_host }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. + You might want to make sure you are familiar with our <a href="https://{{ domain }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ domain }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ domain }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. </p> <p> We would be extremely grateful for your contribution, and thank you in advance for your consideration. diff --git a/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder1.html b/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder1.html index 3f0249a39c390f4478347c46f0ff3c6f23ebe909..750923bc2f8cce6851d4a08d62eebb77a8db3a20 100644 --- a/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder1.html +++ b/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder1.html @@ -6,7 +6,7 @@ Recently, on behalf of the Editor-in-charge {{ invitation.submission.editor_in_charge.profile.get_title_display }} {{ invitation.submission.editor_in_charge.user.last_name }}, we invited you to consider refereeing a Submission to {{ invitation.submission.submitted_to }}, namely<br><br> {{ invitation.submission.title }}<br> by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). </p> <p> We are still awaiting your response to this invitation. @@ -14,13 +14,13 @@ could you please let us know whether we can count on your expertise? </p> <p> - Please <a href="https://scipost.org/submissions/accept_or_decline_ref_invitations">accept or decline</a> (login required) this invitation. + Please <a href="https://{{ domain }}{% url 'submissions:accept_or_decline_ref_invitations' %}">accept or decline</a> (login required) this invitation. </p> <p> - If you accept, your report can be submitted by simply clicking on the "Contribute a Report" link on <a href="https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }}">the Submission Page</a> before the reporting deadline (currently set at {{ invitation.submission.reporting_deadline|date:'d M Y' }}; your report will be automatically recognized as an invited report). + If you accept, your report can be submitted by simply clicking on the "Contribute a Report" link on <a href="https://{{ domain }}{{ invitation.submission.get_absolute_url }}">the Submission Page</a> before the reporting deadline (currently set at {{ invitation.submission.reporting_deadline|date:'d M Y' }}; your report will be automatically recognized as an invited report). </p> <p> - You might want to make sure you are familiar with our <a href="https://{{ request.get_host }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ request.get_host }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ request.get_host }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. + You might want to make sure you are familiar with our <a href="https://{{ domain }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ domain }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ domain }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. </p> <p> We would be extremely grateful for your contribution, and thank you in advance for your consideration. diff --git a/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder2.html b/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder2.html index 5876ceff04f26466ea45f365c15a567aa0a7c195..72e872b4516acd72891ba286a41b441c0b7446d1 100644 --- a/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder2.html +++ b/scipost_django/templates/email/referees/invite_contributor_to_referee_reminder2.html @@ -6,7 +6,7 @@ Recently, on behalf of the Editor-in-charge {{ invitation.submission.editor_in_charge.profile.get_title_display }} {{ invitation.submission.editor_in_charge.user.last_name }}, we invited you to consider refereeing a Submission to {{ invitation.submission.submitted_to }}, namely<br><br> {{ invitation.submission.title }}<br> by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). </p> <p> We are still awaiting your response to this invitation. @@ -14,13 +14,13 @@ could you please let us know whether we can count on your expertise? </p> <p> - Please <a href="https://scipost.org/submissions/accept_or_decline_ref_invitations">accept or decline</a> (login required) this invitation. + Please <a href="https://{{ domain }}{% url 'submissions:accept_or_decline_ref_invitations' %}">accept or decline</a> (login required) this invitation. </p> <p> - If you accept, your report can be submitted by simply clicking on the "Contribute a Report" link on <a href="https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }}">the Submission Page</a> before the reporting deadline (currently set at {{ invitation.submission.reporting_deadline|date:'d M Y' }}; your report will be automatically recognized as an invited report). + If you accept, your report can be submitted by simply clicking on the "Contribute a Report" link on <a href="https://{{ domain }}{{ invitation.submission.get_absolute_url }}">the Submission Page</a> before the reporting deadline (currently set at {{ invitation.submission.reporting_deadline|date:'d M Y' }}; your report will be automatically recognized as an invited report). </p> <p> - You might want to make sure you are familiar with our <a href="https://{{ request.get_host }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ request.get_host }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ request.get_host }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. + You might want to make sure you are familiar with our <a href="https://{{ domain }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ domain }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ domain }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. </p> <p> We would be extremely grateful for your contribution, and thank you in advance for your consideration. diff --git a/scipost_django/templates/email/referees/invite_unregistered_to_referee.html b/scipost_django/templates/email/referees/invite_unregistered_to_referee.html index b5b1095b02ef78bacd5545ad60e77a489ed3dc8f..d21e8e8b891b7f21c017d3137a1b93c08bb2aa47 100644 --- a/scipost_django/templates/email/referees/invite_unregistered_to_referee.html +++ b/scipost_django/templates/email/referees/invite_unregistered_to_referee.html @@ -5,25 +5,25 @@ On behalf of the Editor-in-charge {{ invitation.submission.editor_in_charge.profile.get_title_display }} {{ invitation.submission.editor_in_charge.user.last_name }}, we would like to invite you to referee a Submission to {{ invitation.submission.submitted_to }}, namely<br><br> {{ invitation.submission.title }}<br> by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). </p> <p> To ensure timely processing of the submission (out of respect for the authors), we would appreciate a quick accept/decline response from you, ideally within the next 2 days. </p> <p> - If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://scipost.org/submissions/decline_ref_invitation/{{ invitation.invitation_key }}"> clicking here</a>. + If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://{{ domain }}/submissions/decline_ref_invitation/{{ invitation.invitation_key }}"> clicking here</a>. </p> <p> If you are able to provide a Report, you can confirm this after registering and logging in (you will automatically be prompted for a confirmation). </p> <p> We would thus hereby like to cordially invite you to become a Contributor on SciPost (this is required in order to deliver reports; our records show that you are not yet registered); - for your convenience, we have prepared a pre-filled <a href="https://scipost.org/invitation/{{ invitation.invitation_key }}">registration form</a> for you. + for your convenience, we have prepared a pre-filled <a href="https://{{ domain }}/invitation/{{ invitation.invitation_key }}">registration form</a> for you. After activation of your registration, you will be allowed to contribute, in particular by providing referee reports. </p> <p> - You might want to make sure you are familiar with our <a href="https://{{ request.get_host }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ request.get_host }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ request.get_host }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. + You might want to make sure you are familiar with our <a href="https://{{ domain }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ domain }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ domain }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. </p> <p> We very much hope that we can count on your expertise, diff --git a/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder1.html b/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder1.html index f272ff95ded1a0bc3e712786165524d874ad4b00..096113866b1c8a9c9ee81b51c3ff9515f7dad965 100644 --- a/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder1.html +++ b/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder1.html @@ -6,7 +6,7 @@ Recently, on behalf of the Editor-in-charge {{ invitation.submission.editor_in_charge.profile.get_title_display }} {{ invitation.submission.editor_in_charge.user.last_name }}, we invited you to consider refereeing a Submission to {{ invitation.submission.submitted_to }}, namely<br><br> {{ invitation.submission.title }}<br> by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). </p> <p> We are still awaiting your response to this invitation. @@ -14,18 +14,18 @@ could you please let us know whether we can count on your expertise? </p> <p> - If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://scipost.org/submissions/decline_ref_invitation/{{ invitation.invitation_key }}"> clicking here</a>. + If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://{{ domain }}/submissions/decline_ref_invitation/{{ invitation.invitation_key }}"> clicking here</a>. </p> <p> If you are able to provide a Report, you can confirm this after registering and logging in (you will automatically be prompted for a confirmation). </p> <p> We would thus hereby like to cordially invite you to become a Contributor on SciPost (this is required in order to deliver reports; our records show that you are not yet registered); - for your convenience, we have prepared a pre-filled <a href="https://scipost.org/invitation/{{ invitation.invitation_key }}">registration form</a> for you. + for your convenience, we have prepared a pre-filled <a href="https://{{ domain }}/invitation/{{ invitation.invitation_key }}">registration form</a> for you. After activation of your registration, you will be allowed to contribute, in particular by providing referee reports. </p> <p> - You might want to make sure you are familiar with our <a href="https://{{ request.get_host }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ request.get_host }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ request.get_host }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. + You might want to make sure you are familiar with our <a href="https://{{ domain }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ domain }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ domain }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. </p> <p> We very much hope that we can count on your expertise, diff --git a/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder2.html b/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder2.html index 3352952119908a20fc73489ee7bfa8d27027d80b..f6932a93e5891115145ce0be85fa771d516db390 100644 --- a/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder2.html +++ b/scipost_django/templates/email/referees/invite_unregistered_to_referee_reminder2.html @@ -6,7 +6,7 @@ Recently, on behalf of the Editor-in-charge {{ invitation.submission.editor_in_charge.profile.get_title_display }} {{ invitation.submission.editor_in_charge.user.last_name }}, we invited you to consider refereeing a Submission to {{ invitation.submission.submitted_to }}, namely<br><br> {{ invitation.submission.title }}<br> by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). </p> <p> We are still awaiting your response to this invitation. @@ -14,18 +14,18 @@ could you please let us know whether we can count on your expertise? </p> <p> - If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://scipost.org/submissions/decline_ref_invitation/{{ invitation.invitation_key }}"> clicking here</a>. + If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://{{ domain }}/submissions/decline_ref_invitation/{{ invitation.invitation_key }}"> clicking here</a>. </p> <p> If you are able to provide a Report, you can confirm this after registering and logging in (you will automatically be prompted for a confirmation). </p> <p> We would thus hereby like to cordially invite you to become a Contributor on SciPost (this is required in order to deliver reports; our records show that you are not yet registered); - for your convenience, we have prepared a pre-filled <a href="https://scipost.org/invitation/{{ invitation.invitation_key }}">registration form</a> for you. + for your convenience, we have prepared a pre-filled <a href="https://{{ domain }}/invitation/{{ invitation.invitation_key }}">registration form</a> for you. After activation of your registration, you will be allowed to contribute, in particular by providing referee reports. </p> <p> - You might want to make sure you are familiar with our <a href="https://{{ request.get_host }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ request.get_host }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ request.get_host }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. + You might want to make sure you are familiar with our <a href="https://{{ domain }}{% url 'submissions:refereeing_procedure' %}">refereeing procedure</a>, <a href="https://{{ domain }}{% url 'submissions:referee_guidelines' %}">referee guidelines</a> and <a href="https://{{ domain }}{% url 'journals:journals_terms_and_conditions' %}#referee_code_of_conduct">referee code of conduct</a>. </p> <p> We very much hope that we can count on your expertise, diff --git a/scipost_django/templates/email/referees/reinvite_contributor_to_referee.html b/scipost_django/templates/email/referees/reinvite_contributor_to_referee.html index 8f5062d2cbfe6eb188980c565cd75458adf005a4..262cf70694cf5a8f06c2db5a36ddf7696a6ca591 100644 --- a/scipost_django/templates/email/referees/reinvite_contributor_to_referee.html +++ b/scipost_django/templates/email/referees/reinvite_contributor_to_referee.html @@ -7,7 +7,7 @@ <br> by {{ invitation.submission.author_list }} <br> - (<a href="https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }}">see on SciPost.org</a>) + (<a href="https://{{ domain }}{{ invitation.submission.get_absolute_url }}">see on SciPost.org</a>) </p> <p> have resubmitted their manuscript to SciPost. On behalf of the Editor-in-charge {{ invitation.submission.editor_in_charge.profile.get_title_display }} {{ invitation.submission.editor_in_charge.user.last_name }}, we would like to invite you to quickly review this new version. diff --git a/scipost_django/templates/email/referees/remind_referee_deadline_1week.html b/scipost_django/templates/email/referees/remind_referee_deadline_1week.html index 8f0ac95cdd0f8aa1ee76feee2408fffcfdb7c102..083f688f041131e60410400805559b32189f9613 100644 --- a/scipost_django/templates/email/referees/remind_referee_deadline_1week.html +++ b/scipost_django/templates/email/referees/remind_referee_deadline_1week.html @@ -6,7 +6,7 @@ <br><br> {{ invitation.submission.title }} <br>by {{ invitation.submission.author_list }}<br> - (see https://{{ request.get_host }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). + (see https://{{ domain }}{{ invitation.submission.get_absolute_url }} - first submitted {{ invitation.submission.original_submission_date|date:"d M Y" }}). </p> <p> Thank you in advance, diff --git a/scipost_django/templates/email/registration_invitation.html b/scipost_django/templates/email/registration_invitation.html index da821499d1dc6b913048d0492ade699ab5106bea..25be94e6363634c10178eb4524a8c1221f338ee4 100644 --- a/scipost_django/templates/email/registration_invitation.html +++ b/scipost_django/templates/email/registration_invitation.html @@ -17,7 +17,7 @@ Dear {% if object.message_style == 'F' %}{{ object.get_title_display }} {{ objec {# Referee invite #} <p> We would hereby like to cordially invite you to become a Contributor on SciPost (this is required in order to deliver reports; our records show that you are not yet registered); - for your convenience, we have prepared a pre-filled <a href="https://scipost.org/invitation/{{ object.invitation_key }}">registration form</a> for you. + for your convenience, we have prepared a pre-filled <a href="https://{{ domain }}/invitation/{{ object.invitation_key }}">registration form</a> for you. After activation of your registration, you will be allowed to contribute, in particular by providing referee reports. </p> <p> @@ -25,7 +25,7 @@ Dear {% if object.message_style == 'F' %}{{ object.get_title_display }} {{ objec we would appreciate a quick accept/decline response from you, ideally within the next 2 days. </p> <p> - If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://scipost.org/submissions/decline_ref_invitation/{{ object.invitation_key }}"> clicking here</a>. + If you are <strong>not</strong> able to provide a Report, you can let us know by simply <a href="https://{{ domain }}/submissions/decline_ref_invitation/{{ object.invitation_key }}"> clicking here</a>. </p> <p> If you are able to provide a Report, you can confirm this after registering and logging in (you will automatically be prompted for a confirmation). @@ -74,7 +74,7 @@ Dear {% if object.message_style == 'F' %}{{ object.get_title_display }} {{ objec <br> <i>by {{ notification.submission.author_list }}</i> <br> - <a href="https://{{ request.get_host }}/{{ notification.submission.get_absolute_url }}">View the submission's page</a> + <a href="https://{{ domain }}/{{ notification.submission.get_absolute_url }}">View the submission's page</a> </li> {% endfor %} </ul> @@ -91,18 +91,18 @@ Dear {% if object.message_style == 'F' %}{{ object.get_title_display }} {{ objec international scientific community. </p> <p> - The site is anchored at <a href="https://scipost.org">scipost.org</a>. + The site is anchored at <a href="https://{{ domain }}{% url 'scipost:index' %}">{{ domain }}</a>. Many further details about SciPost, its principles, ideals and implementation can be found at - the <a href="https://scipost.org/about">about</a> - and <a href="https://scipost.org/FAQ">FAQ</a> pages.</p> + the <a href="https://{{ domain }}{% url 'scipost:about' %}">about</a> + and <a href="https://{{ domain }}{% url 'scipost:FAQ' %}">FAQ</a> pages.</p> <p>As a professional academic, you can register at the - <a href="https://scipost.org/register">registration page</a>, + <a href="https://{{ domain }}{% url 'scipost:register' %}">registration page</a>, enabling you to contribute to the site's contents, for example by offering submissions, reports and comments. </p> <p> - For your convenience, a partly pre-filled <a href="https://scipost.org/invitation/{{ object.invitation_key }}">registration form</a> + For your convenience, a partly pre-filled <a href="https://{{ domain }}/invitation/{{ object.invitation_key }}">registration form</a> has been prepared for you (you can in any case still register at the - <a href="https://scipost.org/register">registration page</a>). + <a href="https://{{ domain }}{% url 'scipost:register' %}">registration page</a>). </p> <p> If you do develop sympathy for the initiative, besides participating in the @@ -156,18 +156,18 @@ Dear {% if object.message_style == 'F' %}{{ object.get_title_display }} {{ objec </p> <p> To help you in considering this, it would be best if you were to take - the time to look at the website itself, which is anchored at scipost.org. + the time to look at the website itself, which is anchored at {{ domain }}. Besides looking around the site, you can also personally register (to become a Contributor, without necessarily committing to membership of the Editorial College, this to be discussed separately) by visiting - the following <a href="https://scipost.org/invitation/{{ object.invitation_key }}"> + the following <a href="https://{{ domain }}/invitation/{{ object.invitation_key }}"> single-use link</a>, containing a partly pre-filled form for your convenience. </p> <p> Many details about the initiative - can then be found at scipost.org/about and at scipost.org/FAQ. + can then be found at {{ domain }}{% url 'scipost:about' %} and at {{ domain }}{% url 'scipost:FAQ' %}. Functioning of the College will proceed according to the by-laws set - out in scipost.org/EdCol_by-laws. + out in {{ domain }}{% url 'scipost:EdCol_by-laws' %}. </p> <p> Since the success of this initiative is dependent on the involvement of diff --git a/scipost_django/templates/email/signatory/thank_SPB_signature.html b/scipost_django/templates/email/signatory/thank_SPB_signature.html index 4ac17759d9709195aa031852561345c53b781969..f406ac41b599e78a73c2ff80fe6aa62abb89e51b 100644 --- a/scipost_django/templates/email/signatory/thank_SPB_signature.html +++ b/scipost_django/templates/email/signatory/thank_SPB_signature.html @@ -1,12 +1,13 @@ +{% load static %} <p>Many thanks for signing the petition!</p> <p>One quick and easy way to help us further is to get your colleagues to also sign. Please consider doing this, via word-of-mouth or email!</p> <p> One less quick but even more effective way to further help SciPost convince - your institution, library and/or funding agency to become Supporting Partners + your institution, library and/or funding agency to become Sponsors is to send a personalized email to one of their representatives; you can use our - <a href="mailto:?subject=Petition to support SciPost&body=[PLEASE FILL IN THE TO FIELD ABOVE (keeping partners@scipost.org in cc)]%0D%0A%0D%0ADear ...%0D%0A%0D%0A[PLEASE WRITE A PERSONALIZED MESSAGE]%0D%0A%0D%0AHere under, you will find basic information about SciPost and how you can support it.%0D%0A%0D%0ASincerely,%0D%0A[YOUR SIGNATURE]%0D%0A%0D%0A%0D%0A%0D%0ASciPost (https://scipost.org) is a top-quality next-generation Open Access publication portal managed by professional scientists. Its principles, ideals and implementation can be found at https://scipost.org/about and https://scipost.org/FAQ.%0D%0A%0D%0ASciPost follows a different funding model than most traditional publishers. It operates on an entirely not-for-profit basis, and charges neither subscription fees nor article processing charges; instead, its activities are financed through a cost-slashing consortial model.%0D%0A%0D%0ABy making a small financial commitment, the institutions and organizations that benefit from SciPost’s activities can become Supporting Partners. This enables SciPost to perform all of its publication-related activities, maintain its online portal and implement its long-term development plan. Details of the consortial funding scheme and how to join can be found at https://scipost.org/partners or by emailing partners@scipost.org.%0D%0A&cc=partners@scipost.org">template</a> as a start.</p> + <a href="mailto:?subject=Petition to support SciPost&body=[PLEASE FILL IN THE TO FIELD ABOVE (keeping sponsors@{{ domain }} in cc)]%0D%0A%0D%0ADear ...%0D%0A%0D%0A[PLEASE WRITE A PERSONALIZED MESSAGE]%0D%0A%0D%0AHere under, you will find basic information about SciPost and how you can support it.%0D%0A%0D%0ASincerely,%0D%0A[YOUR SIGNATURE]%0D%0A%0D%0A%0D%0A%0D%0ASciPost (https://{{ domain }}) is a top-quality next-generation Open Access publication portal managed by professional scientists. Its principles, ideals and implementation can be found at https://{{ domain }}{% url 'scipost:about' %} and https://{{ domain }}{% url 'scipost:FAQ' %}.%0D%0A%0D%0ASciPost follows a different funding model than most traditional publishers. It operates on an entirely not-for-profit basis, and charges neither subscription fees nor article processing charges; instead, its activities are financed through a cost-slashing consortial model.%0D%0A%0D%0ABy making a small financial commitment, the institutions and organizations that benefit from SciPost’s activities can become Sponsors. This enables SciPost to perform all of its publication-related activities, maintain its online portal and implement its long-term development plan. Details of the consortial funding scheme and how to join can be found at https://{{ domain }}{% url 'sponsors:sponsors' %} or by emailing sponsors@{{ domain }}.%0D%0A&cc=sponsors@{{ domain }}">template</a> as a start.</p> <p> - You can also point them towards details of our consortial funding scheme on our <a href="https://scipost.org/partners">Partners page</a>, and our <a href="https://scipost.org/static/scipost/SPB/SciPost_Supporting_Partners_Board_Prospectus.pdf">one-page Prospectus</a> summarizing the scheme, which is expounded in detail in the draft <a href="https://scipost.org/static/scipost/SPB/SciPost_Supporting_Partner_Agreement.pdf">Partner Agreement</a>. + You can also point them towards details of our consortial funding scheme on our <a href="https://{{ domain }}{% url 'sponsors:sponsors' %}">Sponsors page</a>, and our <a href="https://{{ domain }}{% static 'scipost/SPB/SciPost_Sponsors_Board_Prospectus.pdf' %}">one-page Prospectus</a> summarizing the scheme, which is expounded in detail in the draft <a href="https://{{ domain }}{% static 'scipost/SPB/SciPost_Sponsorship_Agreement.pdf' %}">Sponsorship Agreement</a>. </p> <p> We are very grateful for your help.