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"> <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> <tr>
<td>Title:</td> <td>Authors (as registered SciPost users):</td>
<td>{{ submission.title }}</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>
<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> </table>
<div class="row mt-2"> <div class="row mt-2">
<div class="mt-2 col col-xl-6"> <div class="mt-2 col col-xl-6">
<table class="submission summary"> <table class="submission summary">
<thead> <thead>
<th colspan="2" class="px-1 bg-info">Submission information</th> <th colspan="2" class="px-1 bg-info">Submission information</th>
</thead> </thead>
<tbody> <tbody>
{% if "arxiv.org" in submission.preprint.url %} <tr>
<tr> <td>Preprint Link:</td>
<td>Arxiv Link:</td> <td>
<td> <a href="{{ submission.preprint.url }}"
<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>) target="_blank"
</td> rel="noopener"
</tr> class="text-break">{% firstof submission.preprint.url submission.preprint.identifier_w_vn_nr %}</a>&nbsp;
{% elif submission.preprint.get_absolute_url %} <a href="{{ submission.preprint.citation_pdf_url }}"
<tr> target="_blank"
<td>Preprint link:</td> rel="noopener"><strong>(pdf)</strong></a>
<td> </td>
<a href="{{ submission.preprint.get_absolute_url }}" target="_blank">{{ submission.preprint.identifier_w_vn_nr }}</a> </tr>
</td> {% if submission.code_repository_url %}
</tr> <tr>
{% endif %} <td>Code repository:</td>
{% if submission.code_repository_url %} <td>
<tr> <a href="{{ submission.code_repository_url }}"
<td>Code repository:</td> target="_blank"
<td> class="text-break"
<a href="{{ submission.code_repository_url }}" target="_blank" rel="noopener">{{ submission.code_repository_url }}</a> rel="noopener">{{ submission.code_repository_url }}</a>
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% if submission.data_repository_url %} {% if submission.data_repository_url %}
<tr> <tr>
<td>Data repository:</td> <td>Data repository:</td>
<td> <td>
<a href="{{ submission.data_repository_url }}" target="_blank" rel="noopener">{{ submission.data_repository_url }}</a> <a href="{{ submission.data_repository_url }}"
</td> target="_blank"
</tr> class="text-break"
{% endif %} rel="noopener">{{ submission.data_repository_url }}</a>
{% if submission.acceptance_date %} </td>
<tr> </tr>
<td>Date accepted:</td> {% endif %}
<td>{{ submission.acceptance_date }}</td> {% if submission.acceptance_date %}
</tr> <tr>
{% endif %} <td>Date accepted:</td>
<tr> <td>{{ submission.acceptance_date }}</td>
<td>Date submitted:</td> </tr>
<td>{{ submission.submission_date }}</td> {% endif %}
</tr> <tr>
<tr> <td>Date submitted:</td>
<td>Submitted by:</td> <td>{{ submission.submission_date }}</td>
<td>{{ submission.submitted_by }}</td> </tr>
</tr> <tr>
<tr> <td>Submitted by:</td>
<td>Submitted to:</td> <td>{{ submission.submitted_by }}</td>
<td>{{ submission.submitted_to }}</td> </tr>
</tr> <tr>
{% if submission.proceedings %} <td>Submitted to:</td>
<tr> <td>{{ submission.submitted_to }}</td>
<td>Proceedings issue:</td> </tr>
<td>{{ submission.proceedings }}</td> {% if submission.proceedings %}
</tr> <tr>
{% endif %} <td>Proceedings issue:</td>
{% with ncollections=submission.collection_set.all|length %} <td>{{ submission.proceedings }}</td>
{% if ncollections > 0 %} </tr>
<tr> {% endif %}
<td></td> {% with ncollections=submission.collection_set.all|length %}
<td>&nbsp;for consideration in Collection{{ ncollections|pluralize }}: {% if ncollections > 0 %}
<ul class="mb-0 pb-0"> <tr>
{% for collection in submission.collection_set.all %} <td></td>
<li> <td>
<a href="{{ collection.get_absolute_url }}" target="_blank">{{ collection }}</a> &nbsp;for consideration in Collection{{ ncollections|pluralize }}:
</li> <ul class="mb-0 pb-0">
{% endfor %} {% for collection in submission.collection_set.all %}
</ul> <li>
</td> <a href="{{ collection.get_absolute_url }}" target="_blank">{{ collection }}</a>
</tr> </li>
{% endif %} {% endfor %}
{% endwith %} </ul>
</tbody> </td>
</table> </tr>
</div> {% endif %}
<div class="mt-2 col col-xl-6"> {% endwith %}
{% include "submissions/_submission_ontological_info_table.html" with submission=submission %} </tbody>
</div> </table>
</div>
<div class="mt-2 col col-xl-6">
{% include "submissions/_submission_ontological_info_table.html" with submission=submission %}
</div>
</div> </div>
{% if show_abstract %} {% if show_abstract %}
{% if submission.pdf_refereeing_pack %} {% if submission.pdf_refereeing_pack %}
<p class="mt-3"> <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> <a href="{% url 'submissions:refereeing_package_pdf' submission.preprint.identifier_w_vn_nr %}"
</p> target="_blank"
{% endif %} class="btn btn-outline-primary">Download Refereeing Package</a>
<h3 class="mt-4">Abstract</h3> </p>
<p>{{ submission.abstract }}</p> {% endif %}
<h3 class="mt-4">Abstract</h3>
<p>{{ submission.abstract }}</p>
{% endif %} {% 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