summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-04 15:56:04 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-03-04 15:56:04 -0800
commit8bda15844aeefcaac4f703e92bb932020e642def (patch)
tree99c956a50cd810ec27c5c413c9b9950c66d1ecc1
parent5a3953609ca24bfd1e2029e8d125b5a3990c7ed0 (diff)
downloadfatcat-8bda15844aeefcaac4f703e92bb932020e642def.tar.gz
fatcat-8bda15844aeefcaac4f703e92bb932020e642def.zip
explode some extra metadata dicts
-rw-r--r--python/fatcat_web/templates/entity_macros.html11
1 files changed, 9 insertions, 2 deletions
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 @@
<table class="ui definition single line fixed compact small unstackable table">
<tbody>
{% for (key, value) in extra.items() %}
- <tr><td class="three wide right aligned"><code>{{ key }}</code></td>
- <td class="seven wide"><code>{{ value }}</code>
+ {% if key in ("ia", "crossref", "kbart") and value is mapping and value %}
+ {% for (inner_key, inner_value) in value.items() %}
+ <tr><td class="three wide right aligned"><code>{{ key }}.{{ inner_key }}</code></td>
+ <td class="seven wide"><code>{{ inner_value }}</code>
+ {% endfor %}
+ {% else %}
+ <tr><td class="three wide right aligned"><code>{{ key }}</code></td>
+ <td class="seven wide"><code>{{ value }}</code>
+ {% endif %}
{% endfor %}
</tbody>
</table>