From b03bfc8f3fd84141738f775b273a99850d78e1ff Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 12 Nov 2018 23:18:56 -0800 Subject: refactor python modules --- python/fatcat_web/templates/work_view.html | 72 ++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 python/fatcat_web/templates/work_view.html (limited to 'python/fatcat_web/templates/work_view.html') diff --git a/python/fatcat_web/templates/work_view.html b/python/fatcat_web/templates/work_view.html new file mode 100644 index 00000000..87120e63 --- /dev/null +++ b/python/fatcat_web/templates/work_view.html @@ -0,0 +1,72 @@ +{% extends "base.html" %} +{% block fullbody %} + +
+
+
+

+
work {{ work.ident }}

+
+
+ +
+
+
+ +{% if work.extra != None %} +

Extra Metadata (raw JSON)

+{% for (key, value) in work.extra.items() %} +{{ key }}: {{ value }}
+{% endfor %} +{% endif %} + + + +

A "work" is just a linking identifier between a set of releases. For +example, a pre-print and a published article may contain small differences, but +still reference the same underlying "work". + +
+ +{% if releases != [] %} +

    + {% for release in releases %} +
  • "{{ release.title }}", a {{ release.release_type }} published {{ release.release_date }} as {{ release.release_status }}. +
    {{ release.ident }} + {% endfor %} +
+{% else %} +

There are no known releases associated with this work. +{% endif %} + + +

+
+
+ +Work Type: +{% if work.work_type != None %} + {{ work.work_type }} +{% else %} +unkonwn +{% endif %} +
+ +Fatcat Bits +

State is "{{ work.state }}". Revision: +
{{ work.revision }} +
As JSON object via API + +

+ + +
+
+ +{% endblock %} -- cgit v1.2.3