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
c7dfb78b
Commit
c7dfb78b
authored
8 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Debug html email invitation
parent
ea9e79d0
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
scipost/utils.py
+9
-7
9 additions, 7 deletions
scipost/utils.py
with
9 additions
and
7 deletions
scipost/utils.py
+
9
−
7
View file @
c7dfb78b
...
@@ -183,10 +183,12 @@ class Utils(object):
...
@@ -183,10 +183,12 @@ class Utils(object):
email_text_html
+=
'
{{ first_name }}
'
email_text_html
+=
'
{{ first_name }}
'
email_context
[
'
first_name
'
]
=
cls
.
invitation
.
first_name
email_context
[
'
first_name
'
]
=
cls
.
invitation
.
first_name
email_text
+=
'
,
\n\n
'
email_text
+=
'
,
\n\n
'
email_text_html
+=
'
,<br/>
<br/>
'
email_text_html
+=
'
,<br/>
'
if
len
(
cls
.
invitation
.
personal_message
)
>
3
:
if
len
(
cls
.
invitation
.
personal_message
)
>
3
:
email_text
+=
cls
.
invitation
.
personal_message
+
'
\n\n
'
email_text
+=
cls
.
invitation
.
personal_message
+
'
\n\n
'
email_text_html
+=
'
{{ personal_message|linebreaks }}<br/><br/>
'
email_text_html
+=
'
{{ personal_message|linebreaks }}<br/><br/>
'
email_context
[
'
personal_message
'
]
=
cls
.
invitation
.
personal_message
# This text to be put in C, ci invitations
# This text to be put in C, ci invitations
summary_text
=
(
summary_text
=
(
'
\n\n
In summary, SciPost.org is a publication portal managed by
'
'
\n\n
In summary, SciPost.org is a publication portal managed by
'
...
@@ -225,7 +227,7 @@ class Utils(object):
...
@@ -225,7 +227,7 @@ class Utils(object):
'
Open Access journals with innovative forms of refereeing, and a
'
'
Open Access journals with innovative forms of refereeing, and a
'
'
means of commenting on all existing literature. SciPost is established as
'
'
means of commenting on all existing literature. SciPost is established as
'
'
a not-for-profit foundation devoted to serving the interests of the
'
'
a not-for-profit foundation devoted to serving the interests of the
'
'
international scientific community.
'
'
international scientific community.
\n
'
'
<br/><br/>The site is anchored at <a href=
"
https://scipost.org
"
>scipost.org</a>.
'
'
<br/><br/>The site is anchored at <a href=
"
https://scipost.org
"
>scipost.org</a>.
'
'
Many further details
'
'
Many further details
'
'
about SciPost, its principles, ideals and implementation can be found at
'
'
about SciPost, its principles, ideals and implementation can be found at
'
...
@@ -234,17 +236,17 @@ class Utils(object):
...
@@ -234,17 +236,17 @@ class Utils(object):
'
<br/><br/>As a professional academic, you can register at the
'
'
<br/><br/>As a professional academic, you can register at the
'
'
<a href=
"
https://scipost.org/register
"
>registration page</a>,
'
'
<a href=
"
https://scipost.org/register
"
>registration page</a>,
'
'
enabling you to contribute to the site
\'
s
'
'
enabling you to contribute to the site
\'
s
'
'
contents, for example by offering submissions, reports and comments.
'
'
contents, for example by offering submissions, reports and comments.
\n
'
'
<br/><br/>For your convenience, I have prepared a partly pre-filled
'
'
<br/><br/>For your convenience, I have prepared a partly pre-filled
'
'
<a href=
"
https://scipost.org/invitation/{{ invitation_key }}>registration form</a>
'
'
<a href=
"
https://scipost.org/invitation/{{ invitation_key }}
"
>registration form</a>
'
'
(valid for up to a year; you can thereafter still register at the
'
'
(valid for up to a year; you can thereafter still register at the
'
'
<a href=
"
https://scipost.org/register
"
>registration page</a>).<br/><br/>
'
'
<a href=
"
https://scipost.org/register
"
>registration page</a>).<br/><br/>
\n
'
'
If you do develop sympathy for the initiative, besides participating in the
'
'
If you do develop sympathy for the initiative, besides participating in the
'
'
online platform, I would be very grateful if you considered submitting a
'
'
online platform, I would be very grateful if you considered submitting a
'
'
publication to one of the journals within the near future, in order to help
'
'
publication to one of the journals within the near future, in order to help
'
'
establish their reputation. I
\'
ll also be looking forward to your reaction,
'
'
establish their reputation. I
\'
ll also be looking forward to your reaction,
'
'
comments and suggestions about the initiative, which I hope you will find
'
'
comments and suggestions about the initiative, which I hope you will find
'
'
useful to your work as a professional scientist.
'
'
useful to your work as a professional scientist.
\n
'
'
<br/><br/>Many thanks in advance for taking a few minutes to look into it,
'
'
<br/><br/>Many thanks in advance for taking a few minutes to look into it,
'
'
<br/><br/>On behalf of the SciPost Foundation,<br/><br/>
'
'
<br/><br/>On behalf of the SciPost Foundation,<br/><br/>
'
'
Prof. dr Jean-Sébastien Caux<br/>
'
'
Prof. dr Jean-Sébastien Caux<br/>
'
...
@@ -278,7 +280,7 @@ class Utils(object):
...
@@ -278,7 +280,7 @@ class Utils(object):
'
(this is required in order to deliver reports;
'
'
(this is required in order to deliver reports;
'
'
our records show that you are not yet registered);
'
'
our records show that you are not yet registered);
'
'
for your convenience, we have prepared a pre-filled
'
'
for your convenience, we have prepared a pre-filled
'
'
<a href=
"
https://scipost.org/invitation/{{ invitation_key }}>registration form</a>
'
'
<a href=
"
https://scipost.org/invitation/{{ invitation_key }}
"
>registration form</a>
'
'
for you. After activation of your registration, you will be allowed to contribute,
'
'
for you. After activation of your registration, you will be allowed to contribute,
'
'
in particular by providing referee reports.<br/><br/>
'
'
in particular by providing referee reports.<br/><br/>
'
'
We very much hope that we can count on your expertise,<br/><br/>
'
'
We very much hope that we can count on your expertise,<br/><br/>
'
...
...
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