-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy patharticle_issue_list.html
23 lines (22 loc) · 1.01 KB
/
article_issue_list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% load i18n %}
{% with issue_length=article.issues_list|length %}
<h2>{% if issue_length > 1 %}{% trans 'Issues' %}{% else %}{% trans 'Issue' %}{% endif %}</h2>
{% endwith %}
<ul>
{% if article.primary_issue %}
<li>
<a href="{% url 'journal_issue' article.primary_issue.pk %}">
{% if article.issues_list.count > 1 %}{% trans 'Primary: ' %}{% endif %}{{ article.primary_issue.display_title }}
</a>
{% if journal_settings.article.display_guest_editors %}
<br />
{% include "common/elements/guest_editors.html" with issue=article.primary_issue small="small" %}
{% endif %}
</li>
{% endif %}
{% for issue in article.issues_list %}
{% if not issue == article.primary_issue %}<li><a href="{% url 'journal_issue' issue.pk %}">{{ issue.issue_type.pretty_name }}: {{ issue.display_title }}</a></li>{% endif %}
{% empty %}
<li>{% trans 'This article is not a part of any issues' %}.</li>
{% endfor %}
</ul>