Skip to content

Commit

Permalink
Makes preprint versions better on preprint page.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Nov 9, 2020
1 parent 5c35090 commit 3709291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/themes/material/templates/repository/preprint.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div class="col m7">
<div itemprop="articleBody" id="pdf">
<p class="preprint-text">
This is a {{ request.repository.object_name }} and has not been peer reviewed.{% if preprint.doi %} The published version of this {{ request.repository.object_name }} is available: <a href="{{ preprint.doi }}">{{ preprint.doi }}</a>.{% endif %}
This is a {{ request.repository.object_name }} and has not been peer reviewed.{% if preprint.doi %} The published version of this {{ request.repository.object_name }} is available: <a href="{{ preprint.doi }}">{{ preprint.doi }}</a>.{% endif %} This is version {{ preprint.current_version.version }} of this {{ request.repository.object_name }}.
</p>
{% if preprint.current_version_file_type == 'html' %}
<div class="card">
Expand Down Expand Up @@ -96,7 +96,7 @@ <h5>Dates</h5>
<p><strong>Published: </strong>{{ preprint.date_published }}</p>
{% if preprint.preprintversion_set.count > 0 and preprint.current_version and preprint.current_version.date_time > preprint.date_published %}<p><strong>Last Updated: </strong>{{ preprint.current_version.date_time }}</p>{% endif %}

{% if preprint.preprintversion_set.count > 0 %}
{% if preprint.preprintversion_set.count > 1 %}
<h5>Older Versions</h5>
<ul>
{% for version in preprint.preprintversion_set.all %}
Expand Down

0 comments on commit 3709291

Please sign in to comment.