SciPost Code Repository

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

Merge branch 'dev_GK_20230630_submissions_UX_fixes' into 'master'

Fix UX with submission links (breaking / pdf)

Closes #104, #103, #100, and #86

See merge request !50
parents 3ff43c65 b04b299c
No related branches found
No related tags found
1 merge request!50Fix UX with submission links (breaking / pdf)
<table class="submission summary">
{% if not hide_title %}
{% if not hide_title %}
<tr>
<td>Title:</td>
<td>{{ submission.title }}</td>
</tr>
<tr>
<td>Author(s):</td>
<td>{{ submission.author_list }}</td>
</tr>
{% endif %}
<tr>
<td>Title:</td>
<td>{{ submission.title }}</td>
<td>Authors (as registered SciPost users):</td>
<td>
{% for author in submission.authors.all %}
{% if not forloop.first %}<span class="text-blue">&middot;</span>{% endif %}
<a href="{% url 'scipost:contributor_info' author.id %}">{{ author.user.first_name }} {{ author.user.last_name }}</a>
{% empty %}
(none claimed)
{% endfor %}
</td>
</tr>
<tr>
<td>Author(s):</td>
<td>{{ submission.author_list }}</td>
</tr>
{% endif %}
<tr>
<td>Authors (as Contributors):</td>
<td>
{% for author in submission.authors.all %}
{% if not forloop.first %}<span class="text-blue">&middot;</span> {% endif %}<a href="{% url 'scipost:contributor_info' author.id %}">{{ author.user.first_name }} {{ author.user.last_name }}</a>
{% empty %}
(none claimed)
{% endfor %}
</td>
</tr>
</table>
<div class="row mt-2">
<div class="mt-2 col col-xl-6">
<table class="submission summary">
<thead>
<th colspan="2" class="px-1 bg-info">Submission information</th>
</thead>
<tbody>
{% if "arxiv.org" in submission.preprint.url %}
<tr>
<td>Arxiv Link:</td>
<td>
<a href="{{ submission.preprint.url }}" target="_blank" rel="noopener">{{ submission.preprint.url }}</a>&emsp;(<a href="{{ submission.preprint.citation_pdf_url }}" target="_blank" rel="noopener">pdf</a>)
</td>
</tr>
{% elif submission.preprint.get_absolute_url %}
<tr>
<td>Preprint link:</td>
<td>
<a href="{{ submission.preprint.get_absolute_url }}" target="_blank">{{ submission.preprint.identifier_w_vn_nr }}</a>
</td>
</tr>
{% endif %}
{% if submission.code_repository_url %}
<tr>
<td>Code repository:</td>
<td>
<a href="{{ submission.code_repository_url }}" target="_blank" rel="noopener">{{ submission.code_repository_url }}</a>
</td>
</tr>
{% endif %}
{% if submission.data_repository_url %}
<tr>
<td>Data repository:</td>
<td>
<a href="{{ submission.data_repository_url }}" target="_blank" rel="noopener">{{ submission.data_repository_url }}</a>
</td>
</tr>
{% endif %}
{% if submission.acceptance_date %}
<tr>
<td>Date accepted:</td>
<td>{{ submission.acceptance_date }}</td>
</tr>
{% endif %}
<tr>
<td>Date submitted:</td>
<td>{{ submission.submission_date }}</td>
</tr>
<tr>
<td>Submitted by:</td>
<td>{{ submission.submitted_by }}</td>
</tr>
<tr>
<td>Submitted to:</td>
<td>{{ submission.submitted_to }}</td>
</tr>
{% if submission.proceedings %}
<tr>
<td>Proceedings issue:</td>
<td>{{ submission.proceedings }}</td>
</tr>
{% endif %}
{% with ncollections=submission.collection_set.all|length %}
{% if ncollections > 0 %}
<tr>
<td></td>
<td>&nbsp;for consideration in Collection{{ ncollections|pluralize }}:
<ul class="mb-0 pb-0">
{% for collection in submission.collection_set.all %}
<li>
<a href="{{ collection.get_absolute_url }}" target="_blank">{{ collection }}</a>
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% endwith %}
</tbody>
</table>
</div>
<div class="mt-2 col col-xl-6">
{% include "submissions/_submission_ontological_info_table.html" with submission=submission %}
</div>
<div class="mt-2 col col-xl-6">
<table class="submission summary">
<thead>
<th colspan="2" class="px-1 bg-info">Submission information</th>
</thead>
<tbody>
<tr>
<td>Preprint Link:</td>
<td>
<a href="{{ submission.preprint.url }}"
target="_blank"
rel="noopener"
class="text-break">{% firstof submission.preprint.url submission.preprint.identifier_w_vn_nr %}</a>&nbsp;
<a href="{{ submission.preprint.citation_pdf_url }}"
target="_blank"
rel="noopener"><strong>(pdf)</strong></a>
</td>
</tr>
{% if submission.code_repository_url %}
<tr>
<td>Code repository:</td>
<td>
<a href="{{ submission.code_repository_url }}"
target="_blank"
class="text-break"
rel="noopener">{{ submission.code_repository_url }}</a>
</td>
</tr>
{% endif %}
{% if submission.data_repository_url %}
<tr>
<td>Data repository:</td>
<td>
<a href="{{ submission.data_repository_url }}"
target="_blank"
class="text-break"
rel="noopener">{{ submission.data_repository_url }}</a>
</td>
</tr>
{% endif %}
{% if submission.acceptance_date %}
<tr>
<td>Date accepted:</td>
<td>{{ submission.acceptance_date }}</td>
</tr>
{% endif %}
<tr>
<td>Date submitted:</td>
<td>{{ submission.submission_date }}</td>
</tr>
<tr>
<td>Submitted by:</td>
<td>{{ submission.submitted_by }}</td>
</tr>
<tr>
<td>Submitted to:</td>
<td>{{ submission.submitted_to }}</td>
</tr>
{% if submission.proceedings %}
<tr>
<td>Proceedings issue:</td>
<td>{{ submission.proceedings }}</td>
</tr>
{% endif %}
{% with ncollections=submission.collection_set.all|length %}
{% if ncollections > 0 %}
<tr>
<td></td>
<td>
&nbsp;for consideration in Collection{{ ncollections|pluralize }}:
<ul class="mb-0 pb-0">
{% for collection in submission.collection_set.all %}
<li>
<a href="{{ collection.get_absolute_url }}" target="_blank">{{ collection }}</a>
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% endwith %}
</tbody>
</table>
</div>
<div class="mt-2 col col-xl-6">
{% include "submissions/_submission_ontological_info_table.html" with submission=submission %}
</div>
</div>
{% if show_abstract %}
{% if submission.pdf_refereeing_pack %}
<p class="mt-3">
<a href="{% url 'submissions:refereeing_package_pdf' submission.preprint.identifier_w_vn_nr %}" target="_blank" class="btn btn-outline-primary">Download Refereeing Package</a>
</p>
{% endif %}
<h3 class="mt-4">Abstract</h3>
<p>{{ submission.abstract }}</p>
{% if submission.pdf_refereeing_pack %}
<p class="mt-3">
<a href="{% url 'submissions:refereeing_package_pdf' submission.preprint.identifier_w_vn_nr %}"
target="_blank"
class="btn btn-outline-primary">Download Refereeing Package</a>
</p>
{% endif %}
<h3 class="mt-4">Abstract</h3>
<p>{{ submission.abstract }}</p>
{% endif %}
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