From 742c33a2958a5c444e4d90c57110b96d9f10339b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 21:36:25 -0700 Subject: better extra json printing --- python/fatcat/templates/container_view.html | 7 +++++-- python/fatcat/templates/creator_view.html | 7 +++++-- python/fatcat/templates/file_view.html | 6 ++++-- python/fatcat/templates/release_view.html | 7 ++++--- python/fatcat/templates/work_view.html | 6 ++++-- 5 files changed, 22 insertions(+), 11 deletions(-) diff --git a/python/fatcat/templates/container_view.html b/python/fatcat/templates/container_view.html index 4aae2f0d..1b8903b2 100644 --- a/python/fatcat/templates/container_view.html +++ b/python/fatcat/templates/container_view.html @@ -24,9 +24,12 @@ {% if (container.extra != None) and (container.extra.url != None) %}

Homepage:  {{ container.extra.url }} {% endif %} + {% if container.extra != None %} -

Additional Metadata (raw JSON):{{ container.extra }} +

Extra Metadata (raw JSON)

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