aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-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>