-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy patharticle.html
More file actions
143 lines (132 loc) · 5.26 KB
/
Copy patharticle.html
File metadata and controls
143 lines (132 loc) · 5.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{% extends "admin/core/base.html" %}
{% load hooks i18n %}
{% block title %}Article {{ article.pk }} Information{% endblock %}
{% block breadcrumbs %}
{{ block.super }}
<li>Author</li>
<li>{{ article.safe_title }}</li>
{% endblock %}
{% block body %}
<div class="box">
<div class="title-area">
<h2>{{ article.safe_title }}</h2>
</div>
{% if article.stage == "Published" %}
{% hook 'edit_article' %}
{% endif %}
<div class="content">
<table class="scroll">
<tr>
<th>{% trans "Current Stage" %}</th>
<td>{{ article.get_stage_display }}</td>
</tr>
<tr>
<th>{% trans "Submitted" %}</th>
<td>{{ article.date_submitted|default:_("Not yet submitted") }}</td>
</tr>
<tr>
<th>{% trans "Section" %}</th>
<td>{{ article.section.name|default:_("Not set") }}</td>
</tr>
<tr>
<th>{% trans "Correspondence Author" %}</th>
<td>
{% if article.correspondence_author %}
{{ article.correspondence_author.full_name|default:article.correspondence_author.email }}
{% else %}
{% trans "Not set" %}
{% endif %}
</td>
</tr>
<tr>
<th>{% trans "Abstract" %}</th>
<td>{{ article.abstract|safe|default:_("No abstract provided") }}</td>
</tr>
</table>
</div>
</div>
{% if not journal_settings.general.hide_review_data_pre_release or article.peer_reviews_for_author_consumption.exists %}
<div class="box">
<div class="title-area">
{% comment %}
If editing this heading, see
src.core.test_app.CoreTests.test_hide_review_details_on
{% endcomment %}
<h2>Reviews</h2>
</div>
<div class="box">
{% if journal_settings.general.enable_peer_review_data_block %}
<!-- table id for unit testing -->
<table id="peer_review_data_block" class="scroll">
<tr>
<th>Date Requested</th>
<th>Date Due</th>
<th>Date Completed</th>
<th>Status</th>
<th></th>
</tr>
{% for review in article.reviewassignment_set.all %}
<tr>
<td>{{ review.date_requested }}</td>
<td>{{ review.date_due }}</td>
<td>{{ review.date_complete }}</td>
<td>
<span class="{{ review.status.span_class }}">{{ review.status.display }}</span>
</td>
<td>{% if review.for_author_consumption %}<a href="{% url 'review_author_view' article.pk %}">View Reviews</a>{% else %}Access has not been granted.{% endif %}</td>
</tr>
{% endfor %}
</table>
{% else %}
<table class="table scroll">
{% for review in article.peer_reviews_for_author_consumption %}
<tr>
<th>Review #{{ review.pk }}</th>
<td><a href="{% url 'review_author_view' article.pk %}">View Reviews</a></td>
</tr>
{% empty %}
<tr>
<td>No review data to display</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
</div>
{% endif %}
{% if article.is_published %}
<div class="box">
<div class="title-area">
<h2>View and Download Stats</h2>
<table class="scroll">
<tr>
<th>Views</th>
<td>{{ article.metrics.views }}</td>
</tr>
<tr>
<th>Downloads</th>
<td>{{ article.metrics.downloads }}</td>
</tr>
</table>
</div>
</div>
{% endif %}
<div class="box">
<div class="title-area">
<h2>Tasks</h2>
</div>
<div class="content">
{% for revision in article.active_revision_requests %}
{% if not revision.date_completed %}
<a class="small button" href="{% url 'do_revisions' article.pk revision.pk %}">Revision Request due on {{ revision.date_due|date:"Y-m-d" }}</a>
{% endif %}
{% endfor %}
{% for review in article.active_author_copyedits %}
<a class="small button" href="{% url 'author_copyedit' article.pk review.pk %}">Copyediting Review assigned on {{ review.assigned|date:"Y-m-d" }}</a>
{% endfor %}
{% include "typesetting/elements/author_tasks.html" %}
{% hook 'core_article_tasks' %}
</div>
</div>
{% hook 'core_article_footer' %}
{% endblock %}