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') 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