SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 852bde7f authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add Journal/Tier info for accepted submission in production page

parent 364674ee
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
{% load bootstrap %} {% load bootstrap %}
{% load scipost_extras %} {% load scipost_extras %}
{% load submissions_extras %}
{% block content %} {% block content %}
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
<thead> <thead>
<tr> <tr>
<th style="width: 30%;">Submission</th> <th style="width: 30%;">Submission</th>
<th>Target Journal<br/>(Tier)</th>
<th>Status</th> <th>Status</th>
<th class="py-1"> <th class="py-1">
Latest activity Latest activity
...@@ -77,6 +79,7 @@ ...@@ -77,6 +79,7 @@
<br> <br>
by {{ stream.submission.author_list }} by {{ stream.submission.author_list }}
</td> </td>
<td>{{ stream.submission.get_submitted_to_journal_display }}{% for rec in stream.submission.eicrecommendations.all %}<br/>({{ rec|Tier }}){% endfor %}</td>
<td> <td>
<div class="label label-{% if stream.status == 'initiated' %}outline-danger{% else %}secondary{% endif %} label-sm">{{ stream.get_status_display }}</div> <div class="label label-{% if stream.status == 'initiated' %}outline-danger{% else %}secondary{% endif %} label-sm">{{ stream.get_status_display }}</div>
</td> </td>
......
...@@ -4,7 +4,7 @@ __license__ = "AGPL v3" ...@@ -4,7 +4,7 @@ __license__ = "AGPL v3"
from django import template from django import template
from ..constants import DECISION_FIXED from ..constants import DECISION_FIXED, REPORT_PUBLISH_1, REPORT_PUBLISH_2, REPORT_PUBLISH_3
from ..models import Submission, EICRecommendation from ..models import Submission, EICRecommendation
register = template.Library() register = template.Library()
...@@ -58,3 +58,15 @@ def is_voting_fellow(submission, user): ...@@ -58,3 +58,15 @@ def is_voting_fellow(submission, user):
@register.filter @register.filter
def citation(citable): def citation(citable):
return citable.citation return citable.citation
@register.filter
def Tier(recommendation):
if recommendation.recommendation == REPORT_PUBLISH_1:
return 'Tier I'
elif recommendation.recommendation == REPORT_PUBLISH_2:
return 'Tier II'
elif recommendation.recommendation == REPORT_PUBLISH_3:
return 'Tier III'
else:
return 'unknown Tier'
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