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
74b42210
Commit
74b42210
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Fix Report-comment vetting mail
parent
f95b367b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
comments/views.py
+15
-0
15 additions, 0 deletions
comments/views.py
proceedings/templates/partials/proceedings/description.html
+2
-1
2 additions, 1 deletion
proceedings/templates/partials/proceedings/description.html
with
17 additions
and
1 deletion
comments/views.py
+
15
−
0
View file @
74b42210
...
...
@@ -88,6 +88,13 @@ def vet_submitted_comment(request, comment_id):
if
not
comment
.
is_author_reply
:
SubmissionUtils
.
load
({
'
submission
'
:
content_object
})
SubmissionUtils
.
send_author_comment_received_email
()
elif
isinstance
(
content_object
,
Report
):
# Add events to related Submission and send mail to author of the Submission
content_object
.
submission
.
add_event_for_eic
(
'
A Comment has been accepted.
'
)
content_object
.
submission
.
add_event_for_author
(
'
A new Comment has been added.
'
)
if
not
comment
.
is_author_reply
:
SubmissionUtils
.
load
({
'
submission
'
:
content_object
.
submission
})
SubmissionUtils
.
send_author_comment_received_email
()
elif
form
.
cleaned_data
[
'
action_option
'
]
==
'
2
'
:
# The comment request is simply rejected
...
...
@@ -104,6 +111,8 @@ def vet_submitted_comment(request, comment_id):
if
isinstance
(
comment
.
content_object
,
Submission
):
# Add event if commented to Submission
comment
.
content_object
.
add_event_for_eic
(
'
A Comment has been rejected.
'
)
elif
isinstance
(
comment
.
content_object
,
Report
):
comment
.
content_object
.
submission
.
add_event_for_eic
(
'
A Comment has been rejected.
'
)
messages
.
success
(
request
,
'
Submitted Comment vetted.
'
)
if
isinstance
(
comment
.
content_object
,
Submission
):
...
...
@@ -112,6 +121,12 @@ def vet_submitted_comment(request, comment_id):
# Redirect a EIC back to the Editorial Page!
return
redirect
(
reverse
(
'
submissions:editorial_page
'
,
args
=
(
submission
.
arxiv_identifier_w_vn_nr
,)))
elif
isinstance
(
comment
.
content_object
,
Report
):
submission
=
comment
.
content_object
.
submission
if
submission
.
editor_in_charge
==
request
.
user
.
contributor
:
# Redirect a EIC back to the Editorial Page!
return
redirect
(
reverse
(
'
submissions:editorial_page
'
,
args
=
(
submission
.
arxiv_identifier_w_vn_nr
,)))
elif
request
.
user
.
has_perm
(
'
scipost.can_vet_comments
'
):
# Redirect vetters back to check for other unvetted comments!
return
redirect
(
reverse
(
'
comments:vet_submitted_comments_list
'
))
...
...
This diff is collapsed.
Click to expand it.
proceedings/templates/partials/proceedings/description.html
+
2
−
1
View file @
74b42210
...
...
@@ -5,7 +5,8 @@
<strong>
Submission deadline: {{ proceedings.submissions_deadline }}
</strong>
.
</div>
{% if proceedings.open_for_submission %}
<a
href=
"{% url 'submissions:submit_manuscript' %}"
>
Submit your manuscript here
</a>
<a
href=
"{% url 'submissions:submit_manuscript' %}"
>
Submit your manuscript here
</a>
.
Prepare your manuscript according to
<a
href=
"{% url 'submissions:author_guidelines' %}"
>
our guidelines
</a>
, using
<a
href
>
our LaTeX template
</a>
.
{% endif %}
</div>
<p>
{{ proceedings.event_description|linebreaksbr }}
</p>
...
...
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