diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-04 15:56:04 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-04 15:56:04 -0800 |
commit | 8bda15844aeefcaac4f703e92bb932020e642def (patch) | |
tree | 99c956a50cd810ec27c5c413c9b9950c66d1ecc1 /python/fatcat_web/templates | |
parent | 5a3953609ca24bfd1e2029e8d125b5a3990c7ed0 (diff) | |
download | fatcat-8bda15844aeefcaac4f703e92bb932020e642def.tar.gz fatcat-8bda15844aeefcaac4f703e92bb932020e642def.zip |
explode some extra metadata dicts
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 11 |
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> |