From 3caa8905ef2f413ec8fa107dd54f03356f4052d8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 6 Apr 2019 19:21:52 -0700 Subject: remove title from metadata macro --- python/fatcat_web/templates/container_view.html | 1 + python/fatcat_web/templates/creator_view.html | 1 + python/fatcat_web/templates/entity_macros.html | 1 - python/fatcat_web/templates/file_view.html | 1 + python/fatcat_web/templates/fileset_view.html | 1 + python/fatcat_web/templates/release_view.html | 1 + python/fatcat_web/templates/webcapture_view.html | 1 + python/fatcat_web/templates/work_view.html | 1 + 8 files changed, 7 insertions(+), 1 deletion(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index 3d0627ca..619bd647 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -41,6 +41,7 @@ {% if entity.extra %} +

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(entity.extra) }} {% endif %} diff --git a/python/fatcat_web/templates/creator_view.html b/python/fatcat_web/templates/creator_view.html index 8f61d74b..63308a51 100644 --- a/python/fatcat_web/templates/creator_view.html +++ b/python/fatcat_web/templates/creator_view.html @@ -32,6 +32,7 @@ {% endif %} {% if entity.extra != None %} +

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(entity.extra) }} {% endif %} diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index 6d9ceed0..90c8e952 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -26,7 +26,6 @@ {% macro extra_metadata(extra) -%} -

Extra Metadata (raw JSON)

{% for (key, value) in extra.items() %} diff --git a/python/fatcat_web/templates/file_view.html b/python/fatcat_web/templates/file_view.html index 7a428b55..097ee5f6 100644 --- a/python/fatcat_web/templates/file_view.html +++ b/python/fatcat_web/templates/file_view.html @@ -17,6 +17,7 @@
{% if entity.extra %} +

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(entity.extra) }} {% endif %} diff --git a/python/fatcat_web/templates/fileset_view.html b/python/fatcat_web/templates/fileset_view.html index ada2ae51..7f41e617 100644 --- a/python/fatcat_web/templates/fileset_view.html +++ b/python/fatcat_web/templates/fileset_view.html @@ -17,6 +17,7 @@
{% if entity.extra %} +

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(entity.extra) }} {% endif %} diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index ff044c49..4849842c 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -191,6 +191,7 @@ {% if entity.extra %} +

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(entity.extra) }} {% endif %} diff --git a/python/fatcat_web/templates/webcapture_view.html b/python/fatcat_web/templates/webcapture_view.html index 921d5d48..1dd179f6 100644 --- a/python/fatcat_web/templates/webcapture_view.html +++ b/python/fatcat_web/templates/webcapture_view.html @@ -21,6 +21,7 @@ {% if entity.extra %} +

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(entity.extra) }} {% endif %} diff --git a/python/fatcat_web/templates/work_view.html b/python/fatcat_web/templates/work_view.html index 7842ec50..507498c8 100644 --- a/python/fatcat_web/templates/work_view.html +++ b/python/fatcat_web/templates/work_view.html @@ -17,6 +17,7 @@
{% if entity.extra != None %} +

Extra Metadata (raw JSON)

{{ entity_macros.extra_metadata(entity.extra) }} {% endif %} -- cgit v1.2.3 From d89787882aaf4b7342768ac56d2252f3fcb7a7ad Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 6 Apr 2019 19:22:58 -0700 Subject: diplay extra metadata, disposition in annotations --- python/fatcat_web/templates/editgroup_view.html | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/templates/editgroup_view.html b/python/fatcat_web/templates/editgroup_view.html index f7f3ad45..9d152579 100644 --- a/python/fatcat_web/templates/editgroup_view.html +++ b/python/fatcat_web/templates/editgroup_view.html @@ -27,6 +27,8 @@ Revision: {{ edit.revision }} {% endif %} {% if edit.extra %} + Extra Metadata (raw JSON) + {{ entity_macros.extra_metadata(edit.extra) }} {% endif %}
@@ -90,6 +92,10 @@ reviewable bundle. {% else %} none {% endif %} +{% if editgroup.extra %} +

Extra Metadata (raw JSON)

+ {{ entity_macros.extra_metadata(editgroup.extra) }} +{% endif %}

@@ -117,11 +123,23 @@ reviewable bundle. Admin {% endif %} at {{ annotation.created.strftime("%Y-%m-%d %H:%M:%S") }} + {# TODO: get individual editgroup annotation not supported yet + (as JSON) + #} + {% if annotation.extra and annotation.extra.disposition %} + {% set disp = annotation.extra.disposition %} + {{ annotation.extra.disposition|capitalize }} + {% endif %}
{% if annotation.extra %} -
- {{ entity_macros.extra_metadata(annotation.extra) }} -
+
+
+ Review Metadata (raw JSON) +
+
+ {{ entity_macros.extra_metadata(annotation.extra) }} +
+
{% endif %}
{{ annotation.comment_markdown|markdown(escape=True) }} -- cgit v1.2.3