From cbe805902078195c374560c9000ac39b46975ed0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 21 Mar 2018 12:49:50 -0700 Subject: webface templates --- webface/templates/work_view.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 webface/templates/work_view.html (limited to 'webface/templates/work_view.html') 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 %} + +

{{ work.title }}

+ +

Work type: {{ work.type }} +

History +

Contributors: +{% for c in work.contributors %} {{ c.name }}; {% endfor %} + +{% if primary %} +

Primary Release/Edition

+

Title: {{ primary.title }} +

Date: {{ primary.date }} + +{% if primary.container %} +

Container: {{ primary.container.title }} +{% endif %} + +{% if primary.doi %} +

DOI: {{ primary.doi }} +{% endif %} + +{% else %} +

No primary release +{% endif %} + +{% if releases %} +