From 973eb19ee83950a1adf5d25d6443830d229a1ef5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 31 Mar 2022 12:35:13 -0700 Subject: web metadata display: multi-line for some array values --- python/fatcat_web/templates/entity_macros.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index 5f8f6e0a..4386e698 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -75,6 +75,14 @@ {{ u }}
{% endfor %} + {% elif key in ("manifest", "abstracts", "refs", "releases", "files", "webcaptures", "filesets", "urls", "archive_urls", "cdx", "contribs") and value and value is iterable and value is not string %} + {{ key }}[] + + + {% for m in value %} + {% if m != None %}{{ m }}{% endif %}
+ {% endfor %} +
{% else %} {{ key }} {% if value != None %}{{ value }}{% endif %} -- cgit v1.2.3