aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-03-31 12:35:13 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-03-31 12:35:13 -0700
commit973eb19ee83950a1adf5d25d6443830d229a1ef5 (patch)
tree3a7195b407e55d760dd1fc1f37d28ec6d3acb244 /python
parent0649549664b84d7f5c3d0b9c0b03f1a8b4a88491 (diff)
downloadfatcat-973eb19ee83950a1adf5d25d6443830d229a1ef5.tar.gz
fatcat-973eb19ee83950a1adf5d25d6443830d229a1ef5.zip
web metadata display: multi-line for some array values
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/templates/entity_macros.html8
1 files changed, 8 insertions, 0 deletions
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 @@
<a href="{{ u }}">{{ u }}</a><br>
{% endfor %}
</code>
+ {% 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 %}
+ <tr><td class="three wide right aligned"><code>{{ key }}[]</code></td>
+ <td class="seven wide">
+ <code>
+ {% for m in value %}
+ {% if m != None %}{{ m }}{% endif %}<br>
+ {% endfor %}
+ </code>
{% else %}
<tr><td class="three wide right aligned"><code>{{ key }}</code></td>
<td class="seven wide"><code>{% if value != None %}{{ value }}{% endif %}</code>