aboutsummaryrefslogtreecommitdiffstats
path: root/webface/templates/work_view.html
blob: 8c5e955da354bafe7388a38ee9140150222a71da (plain)
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
{% extends "base.html" %}
{% block body %}

<h1>{{ work.title }}</h1>

<p>Work type: {{ work.type }}
<p><a href="/work/{{ work.id }}/history">History</a>
<p>Contributors:
{% for c in work.contributors %} {{ c.name }}; {% endfor %}

{% if primary %}
<h2>Primary Release/Edition</h2>
<p>Title: {{ primary.title }}
<p>Date: {{ primary.date }}

{% if primary.container %}
<p>Container: <a href="/container/{{ primary.container.id }}">{{ primary.container.title }}</a>
{% endif %}

{% if primary.doi %}
<p>DOI: <a href="https://dx.doi.org/{{ primary.doi }}">{{ primary.doi }}</a>
{% endif %}

{% else %}
<p>No primary release
{% endif %}

{% if releases %}
<ul>
{% for r in releases %}
  <ul><a href="/release/{{ r.id }}">{{ r.title }}</a> ({{ y.date }} - {{ y.release_type }})
{% endfor %}
</ul>
{% else %}
{% endif %}

{% endblock %}