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
d6bbbb4d
Commit
d6bbbb4d
authored
8 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Correct bugs in theses comments vetting
parent
432b05a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
commentaries/models.py
+1
-1
1 addition, 1 deletion
commentaries/models.py
comments/views.py
+6
-0
6 additions, 0 deletions
comments/views.py
submissions/models.py
+1
-1
1 addition, 1 deletion
submissions/models.py
theses/models.py
+1
-1
1 addition, 1 deletion
theses/models.py
with
9 additions
and
3 deletions
commentaries/models.py
+
1
−
1
View file @
d6bbbb4d
...
@@ -43,7 +43,7 @@ class Commentary(models.Model):
...
@@ -43,7 +43,7 @@ class Commentary(models.Model):
header
+=
'
<tr><td>Title: </td><td> </td><td>
'
+
self
.
pub_title
+
'
</td></tr>
'
header
+=
'
<tr><td>Title: </td><td> </td><td>
'
+
self
.
pub_title
+
'
</td></tr>
'
header
+=
'
<tr><td>Author(s): </td><td> </td><td>
'
+
self
.
author_list
+
'
</td></tr>
'
header
+=
'
<tr><td>Author(s): </td><td> </td><td>
'
+
self
.
author_list
+
'
</td></tr>
'
if
self
.
type
==
'
published
'
:
if
self
.
type
==
'
published
'
:
header
+=
'
<tr><td>DOI: </td><td> </td><td><a href=
"'
+
self
.
pub_DOI_link
+
'"
>
'
+
self
.
pub_DOI_link
+
'
</a></td></tr>
'
header
+=
'
<tr><td>DOI: </td><td> </td><td><a href=
"'
+
self
.
pub_DOI_link
+
'"
target=
"
_blank
"
>
'
+
self
.
pub_DOI_link
+
'
</a></td></tr>
'
elif
self
.
type
==
'
preprint
'
:
elif
self
.
type
==
'
preprint
'
:
header
+=
'
<tr><td>arxiv Link: </td><td> </td><td><a href=
"'
+
self
.
arxiv_link
+
'"
>
'
+
self
.
arxiv_link
+
'
</a></td></tr>
'
header
+=
'
<tr><td>arxiv Link: </td><td> </td><td><a href=
"'
+
self
.
arxiv_link
+
'"
>
'
+
self
.
arxiv_link
+
'
</a></td></tr>
'
header
+=
'
<tr><td>Date: </td><td> </td><td>
'
+
str
(
self
.
pub_date
)
+
'
</td></tr>
'
header
+=
'
<tr><td>Date: </td><td> </td><td>
'
+
str
(
self
.
pub_date
)
+
'
</td></tr>
'
...
...
This diff is collapsed.
Click to expand it.
comments/views.py
+
6
−
0
View file @
d6bbbb4d
...
@@ -43,6 +43,10 @@ def vet_submitted_comment_ack(request, comment_id):
...
@@ -43,6 +43,10 @@ def vet_submitted_comment_ack(request, comment_id):
email_text
+=
comment
.
submission
.
title
+
'
by
'
+
comment
.
submission
.
author_list
email_text
+=
comment
.
submission
.
title
+
'
by
'
+
comment
.
submission
.
author_list
comment
.
submission
.
latest_activity
=
timezone
.
now
()
comment
.
submission
.
latest_activity
=
timezone
.
now
()
comment
.
submission
.
save
()
comment
.
submission
.
save
()
elif
comment
.
thesislink
is
not
None
:
email_text
+=
comment
.
thesislink
.
title
+
'
by
'
+
comment
.
thesis
.
author
comment
.
thesislink
.
latest_activity
=
timezone
.
now
()
comment
.
thesislink
.
save
()
email_text
+=
(
'
, has been accepted and published online.
'
+
email_text
+=
(
'
, has been accepted and published online.
'
+
'
\n\n
We copy it below for your convenience.
'
+
'
\n\n
We copy it below for your convenience.
'
+
'
\n\n
Thank you for your contribution,
\n
The SciPost Team.
'
+
'
\n\n
Thank you for your contribution,
\n
The SciPost Team.
'
+
...
@@ -62,6 +66,8 @@ def vet_submitted_comment_ack(request, comment_id):
...
@@ -62,6 +66,8 @@ def vet_submitted_comment_ack(request, comment_id):
email_text
+=
comment
.
commentary
.
pub_title
+
'
by
'
+
comment
.
commentary
.
author_list
email_text
+=
comment
.
commentary
.
pub_title
+
'
by
'
+
comment
.
commentary
.
author_list
elif
comment
.
submission
is
not
None
:
elif
comment
.
submission
is
not
None
:
email_text
+=
comment
.
submission
.
title
+
'
by
'
+
comment
.
submission
.
author_list
email_text
+=
comment
.
submission
.
title
+
'
by
'
+
comment
.
submission
.
author_list
elif
comment
.
thesislink
is
not
None
:
email_text
+=
comment
.
thesislink
.
title
+
'
by
'
+
comment
.
thesislink
.
author
email_text
+=
(
'
, has been rejected for the following reason:
'
+
comment_refusal_dict
[
comment
.
status
]
+
'
.
'
+
email_text
+=
(
'
, has been rejected for the following reason:
'
+
comment_refusal_dict
[
comment
.
status
]
+
'
.
'
+
'
\n\n
We copy it below for your convenience.
'
+
'
\n\n
We copy it below for your convenience.
'
+
'
\n\n
Thank you for your contribution,
\n
The SciPost Team.
'
)
'
\n\n
Thank you for your contribution,
\n
The SciPost Team.
'
)
...
...
This diff is collapsed.
Click to expand it.
submissions/models.py
+
1
−
1
View file @
d6bbbb4d
...
@@ -54,7 +54,7 @@ class Submission(models.Model):
...
@@ -54,7 +54,7 @@ class Submission(models.Model):
header
=
'
<table>
'
header
=
'
<table>
'
header
+=
'
<tr><td>Title: </td><td> </td><td>
'
+
self
.
title
+
'
</td></tr>
'
header
+=
'
<tr><td>Title: </td><td> </td><td>
'
+
self
.
title
+
'
</td></tr>
'
header
+=
'
<tr><td>Author(s): </td><td> </td><td>
'
+
self
.
author_list
+
'
</td></tr>
'
header
+=
'
<tr><td>Author(s): </td><td> </td><td>
'
+
self
.
author_list
+
'
</td></tr>
'
header
+=
'
<tr><td>arxiv Link: </td><td> </td><td><a href=
"'
+
self
.
arxiv_link
+
'"
>
'
+
self
.
arxiv_link
+
'
</a></td></tr>
'
header
+=
'
<tr><td>arxiv Link: </td><td> </td><td><a href=
"'
+
self
.
arxiv_link
+
'"
target=
"
_blank
"
>
'
+
self
.
arxiv_link
+
'
</a></td></tr>
'
header
+=
'
<tr><td>Date submitted: </td><td> </td><td>
'
+
str
(
self
.
submission_date
)
+
'
</td></tr>
'
header
+=
'
<tr><td>Date submitted: </td><td> </td><td>
'
+
str
(
self
.
submission_date
)
+
'
</td></tr>
'
header
+=
'
<tr><td>Submitted by: </td><td> </td><td>
'
+
str
(
self
.
submitted_by
)
+
'
</td></tr>
'
header
+=
'
<tr><td>Submitted by: </td><td> </td><td>
'
+
str
(
self
.
submitted_by
)
+
'
</td></tr>
'
header
+=
'
<tr><td>Submitted to: </td><td> </td><td>
'
+
journals_submit_dict
[
self
.
submitted_to_journal
]
+
'
</td></tr>
'
header
+=
'
<tr><td>Submitted to: </td><td> </td><td>
'
+
journals_submit_dict
[
self
.
submitted_to_journal
]
+
'
</td></tr>
'
...
...
This diff is collapsed.
Click to expand it.
theses/models.py
+
1
−
1
View file @
d6bbbb4d
...
@@ -49,7 +49,7 @@ class ThesisLink(models.Model):
...
@@ -49,7 +49,7 @@ class ThesisLink(models.Model):
header
+=
'
<tr><td>Discipline: </td><td></td><td>
'
+
disciplines_dict
[
self
.
discipline
]
+
'
</td></tr>
'
header
+=
'
<tr><td>Discipline: </td><td></td><td>
'
+
disciplines_dict
[
self
.
discipline
]
+
'
</td></tr>
'
header
+=
'
<tr><td>Domain: </td><td></td><td>
'
+
journals_domains_dict
[
self
.
domain
]
+
'
</td></tr>
'
header
+=
'
<tr><td>Domain: </td><td></td><td>
'
+
journals_domains_dict
[
self
.
domain
]
+
'
</td></tr>
'
header
+=
'
<tr><td>Specialization: </td><td></td><td>
'
+
journals_spec_dict
[
self
.
specialization
]
+
'
</td></tr>
'
header
+=
'
<tr><td>Specialization: </td><td></td><td>
'
+
journals_spec_dict
[
self
.
specialization
]
+
'
</td></tr>
'
header
+=
'
<tr><td>URL: </td><td> </td><td><a href=
"'
+
self
.
pub_link
+
'"
>
'
+
self
.
pub_link
+
'
</a></td></tr>
'
header
+=
'
<tr><td>URL: </td><td> </td><td><a href=
"'
+
self
.
pub_link
+
'"
target=
"
_blank
"
>
'
+
self
.
pub_link
+
'
</a></td></tr>
'
header
+=
'
<tr><td>Degree granting institution: </td><td> </td><td>
'
+
self
.
institution
+
'
</td></tr>
'
header
+=
'
<tr><td>Degree granting institution: </td><td> </td><td>
'
+
self
.
institution
+
'
</td></tr>
'
header
+=
'
<tr><td>Supervisor(s): </td><td></td><td>
'
+
self
.
supervisor
+
'
</td></tr>
'
header
+=
'
<tr><td>Supervisor(s): </td><td></td><td>
'
+
self
.
supervisor
+
'
</td></tr>
'
header
+=
'
<tr><td>Defense date: </td><td> </td><td>
'
+
str
(
self
.
defense_date
)
+
'
</td></tr>
'
header
+=
'
<tr><td>Defense date: </td><td> </td><td>
'
+
str
(
self
.
defense_date
)
+
'
</td></tr>
'
...
...
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