From 8bda15844aeefcaac4f703e92bb932020e642def Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 4 Mar 2019 15:56:04 -0800 Subject: explode some extra metadata dicts --- python/fatcat_web/templates/entity_macros.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index 054b2559..8f1706ae 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -22,8 +22,15 @@ {% for (key, value) in extra.items() %} - - + +
{{ key }}{{ value }} + {% if key in ("ia", "crossref", "kbart") and value is mapping and value %} + {% for (inner_key, inner_value) in value.items() %} +
{{ key }}.{{ inner_key }}{{ inner_value }} + {% endfor %} + {% else %} +
{{ key }}{{ value }} + {% endif %} {% endfor %}
-- cgit v1.2.3