aboutsummaryrefslogtreecommitdiffstats
path: root/webface/templates/work_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-03-21 12:49:50 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-03-21 12:49:50 -0700
commitcbe805902078195c374560c9000ac39b46975ed0 (patch)
treed21629167cb1dfec138b921ea52520b1c9908561 /webface/templates/work_view.html
parent87c317c518f0bec49b7f8189dc6f1bcefc8d6ff0 (diff)
downloadfatcat-cbe805902078195c374560c9000ac39b46975ed0.tar.gz
fatcat-cbe805902078195c374560c9000ac39b46975ed0.zip
webface templates
Diffstat (limited to 'webface/templates/work_view.html')
-rw-r--r--webface/templates/work_view.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/webface/templates/work_view.html b/webface/templates/work_view.html
new file mode 100644
index 00000000..8c5e955d
--- /dev/null
+++ b/webface/templates/work_view.html
@@ -0,0 +1,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 %}