SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
38cda58b
Commit
38cda58b
authored
6 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Specify Journal in submission acknowledgement email
parent
4318b921
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
submissions/utils.py
+4
-2
4 additions, 2 deletions
submissions/utils.py
with
4 additions
and
2 deletions
submissions/utils.py
+
4
−
2
View file @
38cda58b
...
@@ -279,7 +279,8 @@ class SubmissionUtils(BaseMailUtil):
...
@@ -279,7 +279,8 @@ class SubmissionUtils(BaseMailUtil):
"""
Requires loading
'
submission
'
attribute.
"""
"""
Requires loading
'
submission
'
attribute.
"""
email_text
=
(
'
Dear
'
+
cls
.
submission
.
submitted_by
.
get_title_display
()
+
'
'
+
email_text
=
(
'
Dear
'
+
cls
.
submission
.
submitted_by
.
get_title_display
()
+
'
'
+
cls
.
submission
.
submitted_by
.
user
.
last_name
+
cls
.
submission
.
submitted_by
.
user
.
last_name
+
'
,
\n\n
We have received your Submission to SciPost,
\n\n
'
+
'
,
\n\n
We have received your Submission to
'
+
cls
.
submission
.
get_submitted_to_journal_display
()
+
'
,
\n\n
'
+
cls
.
submission
.
title
+
'
by
'
+
cls
.
submission
.
author_list
+
'
.
'
+
cls
.
submission
.
title
+
'
by
'
+
cls
.
submission
.
author_list
+
'
.
'
+
'
\n\n
We will update you on the results of the pre-screening process
'
'
\n\n
We will update you on the results of the pre-screening process
'
'
within the next 5 working days.
'
'
within the next 5 working days.
'
...
@@ -289,7 +290,7 @@ class SubmissionUtils(BaseMailUtil):
...
@@ -289,7 +290,7 @@ class SubmissionUtils(BaseMailUtil):
'
\n\n
The SciPost Team.
'
)
'
\n\n
The SciPost Team.
'
)
email_text_html
=
(
email_text_html
=
(
'
<p>Dear {{ title }} {{ last_name }},</p>
'
'
<p>Dear {{ title }} {{ last_name }},</p>
'
'
<p>We have received your Submission to
SciPost
,</p>
'
'
<p>We have received your Submission to
{{ submitted_to_journal }}
,</p>
'
'
<p>{{ sub_title }}</p>
'
'
<p>{{ sub_title }}</p>
'
'
\n
<p>by {{ author_list }}.</p>
'
'
\n
<p>by {{ author_list }}.</p>
'
'
\n
<p>We will update you on the results of the pre-screening process
'
'
\n
<p>We will update you on the results of the pre-screening process
'
...
@@ -302,6 +303,7 @@ class SubmissionUtils(BaseMailUtil):
...
@@ -302,6 +303,7 @@ class SubmissionUtils(BaseMailUtil):
'
title
'
:
cls
.
submission
.
submitted_by
.
get_title_display
(),
'
title
'
:
cls
.
submission
.
submitted_by
.
get_title_display
(),
'
last_name
'
:
cls
.
submission
.
submitted_by
.
user
.
last_name
,
'
last_name
'
:
cls
.
submission
.
submitted_by
.
user
.
last_name
,
'
sub_title
'
:
cls
.
submission
.
title
,
'
sub_title
'
:
cls
.
submission
.
title
,
'
submitted_to_journal
'
:
cls
.
submission
.
get_submitted_to_journal_display
(),
'
author_list
'
:
cls
.
submission
.
author_list
,
'
author_list
'
:
cls
.
submission
.
author_list
,
}
}
email_text_html
+=
'
<br/>
'
+
EMAIL_FOOTER
email_text_html
+=
'
<br/>
'
+
EMAIL_FOOTER
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment