SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 215fe636 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add appraisals to the submission details page

related to #197
parent c231f9a1
No related branches found
No related tags found
No related merge requests found
{% if submission.publications.published %}
<p class="mt-2">Published as
<p class="mt-2">
Published as
{% for publication in submission.publications.published %}
<a href="{{ publication.get_absolute_url }}">
{{ publication.citation }}</a>
{% if not forloop.last %}, {% endif %}
<a href="{{ publication.get_absolute_url }}">{{ publication.citation }}</a>
{% if not forloop.last %},{% endif %}
{% endfor %}
</p>
{% else %}
<div class="submission status mt-2">
<h6 class="prefix">Current status:</h6>
<div class="status">
<span class="label label-secondary">{{ submission.get_status_display }}</span>
</div>
{% if submission.editorial_decision and submission.editorial_decision.status != submission.editorial_decision.DEPRECATED %}
<p>
Editorial decision:
<span class="label label-secondary">For Journal {{ submission.editorial_decision.for_journal }}: {{ submission.editorial_decision.get_decision_display }}</span>
<br>(status: {{ submission.editorial_decision.get_status_display }})
{% else %}
<div class="submission status mt-2">
<h6 class="prefix">Current status:</h6>
<div class="status">
<span class="label label-secondary">{{ submission.get_status_display }}</span>
</div>
{% if is_submission_fellow and submission.status == "seeking_assignment"%}
<section class="p-2 bg-primary bg-opacity-10">
<p>This paper is still seeking assignment. Appraise this paper?</p>
<div id="submission-{{ submission.id }}-appraisal" class="mb-0">
{% include "submissions/pool/_hx_appraisal.html" with submission=submission %}
</div>
</section>
{% endif %}
{% if submission.editorial_decision and submission.editorial_decision.status != submission.editorial_decision.DEPRECATED %}
<p>
Editorial decision:
<span class="label label-secondary">For Journal {{ submission.editorial_decision.for_journal }}: {{ submission.editorial_decision.get_decision_display }}</span>
<br />
(status: {{ submission.editorial_decision.get_status_display }})
</p>
{% endif %}
</div>
{% endif %}
......@@ -618,6 +618,7 @@ def submission_detail(request, identifier_w_vn_nr):
# Check if Contributor is author of the Submission
is_author = check_verified_author(submission, request.user)
is_author_unchecked = check_unverified_author(submission, request.user)
is_submission_fellow = submission.fellows.filter(contributor__user=request.user.id).exists()
if not submission.visible_public and not is_author:
if not request.user.is_authenticated:
......@@ -690,6 +691,7 @@ def submission_detail(request, identifier_w_vn_nr):
"author_replies": author_replies,
"is_author": is_author,
"is_author_unchecked": is_author_unchecked,
"is_submission_fellow": is_submission_fellow,
}
)
return render(request, "submissions/submission_detail.html", context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment