diff --git a/scipost_django/submissions/templates/submissions/_submission_summary.html b/scipost_django/submissions/templates/submissions/_submission_summary.html index a448cd802af69ddfcb039dcc56f3560ad5a7024a..8063730fdbb2290c32842f6561aff3e8f765686d 100644 --- a/scipost_django/submissions/templates/submissions/_submission_summary.html +++ b/scipost_django/submissions/templates/submissions/_submission_summary.html @@ -1,117 +1,124 @@ <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">·</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">·</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> (<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> 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> + <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> + 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 %}