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
dfdb1a98
Commit
dfdb1a98
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Activate new Pool for all Fellows
parent
f26d6495
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
submissions/templates/submissions/pool.html
+8
-0
8 additions, 0 deletions
submissions/templates/submissions/pool.html
submissions/views.py
+3
-34
3 additions, 34 deletions
submissions/views.py
with
11 additions
and
34 deletions
submissions/templates/submissions/pool.html
+
8
−
0
View file @
dfdb1a98
...
...
@@ -2,6 +2,14 @@
{% block pagetitle %}: Submissions Pool{% endblock pagetitle %}
{% comment %}
This template is U/S; to be removed.
-- JdW 22 Nov, 2017
{% endcomment %}
{% load bootstrap %}
{% load guardian_tags %}
{% load scipost_extras %}
...
...
This diff is collapsed.
Click to expand it.
submissions/views.py
+
3
−
34
View file @
dfdb1a98
...
...
@@ -39,7 +39,6 @@ from scipost.forms import ModifyPersonalMessageForm, RemarkForm
from
scipost.mixins
import
PaginationMixin
from
scipost.models
import
Contributor
,
Remark
,
RegistrationInvitation
from
scipost.utils
import
Utils
from
scipost.permissions
import
is_tester
from
comments.forms
import
CommentForm
from
production.forms
import
ProofsDecisionForm
...
...
@@ -340,10 +339,6 @@ def pool(request, arxiv_identifier_w_vn_nr=None):
to publication acceptance or rejection.
All members of the Editorial College have access.
"""
# Objects
# The following is in test phase. Update if test is done
# --
# Search
search_form
=
SubmissionPoolFilterForm
(
request
.
GET
or
None
)
if
search_form
.
is_valid
():
...
...
@@ -355,7 +350,8 @@ def pool(request, arxiv_identifier_w_vn_nr=None):
# submissions = Submission.objects.pool(request.user)
recommendations
=
EICRecommendation
.
objects
.
filter
(
submission__in
=
submissions
)
recs_to_vote_on
=
recommendations
.
user_may_vote_on
(
request
.
user
)
assignments_to_consider
=
EditorialAssignment
.
objects
.
open
().
filter
(
to
=
request
.
user
.
contributor
)
assignments_to_consider
=
EditorialAssignment
.
objects
.
open
().
filter
(
to
=
request
.
user
.
contributor
)
# Forms
consider_assignment_form
=
ConsiderAssignmentForm
()
...
...
@@ -374,9 +370,6 @@ def pool(request, arxiv_identifier_w_vn_nr=None):
'
remark_form
'
:
remark_form
,
}
# The following is in test phase. Update if test is done
# --
# Show specific submission in the pool
context
[
'
submission
'
]
=
None
if
arxiv_identifier_w_vn_nr
:
...
...
@@ -393,36 +386,12 @@ def pool(request, arxiv_identifier_w_vn_nr=None):
# Temporary test logic: only testers see the new Pool
if
context
[
'
submission
'
]
and
request
.
is_ajax
():
template
=
'
partials/submissions/pool/submission_details.html
'
elif
is_tester
(
request
.
user
)
and
not
request
.
GET
.
get
(
'
test
'
)
or
True
:
template
=
'
submissions/pool/pool.html
'
else
:
template
=
'
submissions/pool.html
'
template
=
'
submissions/pool
/pool
.html
'
return
render
(
request
,
template
,
context
)
@login_required
@permission_required
(
'
scipost.can_view_pool
'
,
raise_exception
=
True
)
def
submissions_by_status
(
request
,
status
):
# ---
# DEPRECATED AS PER NEW POOL
# ---
status_dict
=
dict
(
SUBMISSION_STATUS
)
if
status
not
in
status_dict
.
keys
():
errormessage
=
'
Unknown status.
'
return
render
(
request
,
'
scipost/error.html
'
,
{
'
errormessage
'
:
errormessage
})
submissions_of_status
=
(
Submission
.
objects
.
pool_full
(
request
.
user
)
.
filter
(
status
=
status
).
order_by
(
'
-submission_date
'
))
context
=
{
'
submissions_of_status
'
:
submissions_of_status
,
'
status
'
:
status_dict
[
status
],
'
remark_form
'
:
RemarkForm
()
}
return
render
(
request
,
'
submissions/submissions_by_status.html
'
,
context
)
@login_required
# @permission_required('scipost.can_view_pool', raise_exception=True)
def
add_remark
(
request
,
arxiv_identifier_w_vn_nr
):
"""
With this method, an Editorial Fellow or Board Member
...
...
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