aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/templates/container_view.html14
-rw-r--r--python/fatcat_web/templates/entity_macros.html4
-rw-r--r--python/fatcat_web/templates/release_view.html13
3 files changed, 9 insertions, 22 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html
index c8f51f5f..677a295e 100644
--- a/python/fatcat_web/templates/container_view.html
+++ b/python/fatcat_web/templates/container_view.html
@@ -37,18 +37,12 @@
</form>
{% endif %}
-{% if container.extra %}
-<h3>Extra Metadata (raw JSON)</h3>
-<table class="ui definition single line fixed compact small unstackable table">
-<tbody>
-{% for (key, value) in container.extra.items() %}
- <tr><td class="three wide right aligned"><code>{{ key }}</code></td>
- <td class="seven wide"><code>{{ value }}</code>
-{% endfor %}
-</tbody>
-</table>
+
+{% if entity.extra %}
+ {{ entity_macros.extra_metadata(entity.extra) }}
{% endif %}
+
</div>
<div class="five wide column">
<div class="ui segment top attached">
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index e13898a2..054b2559 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -22,8 +22,8 @@
<table class="ui definition single line fixed compact small unstackable table">
<tbody>
{% for (key, value) in extra.items() %}
- <tr><td class="collapsing right aligned"><code>{{ key }}</code></td>
- <td class=""><code>{{ value }}</code>
+ <tr><td class="three wide right aligned"><code>{{ key }}</code></td>
+ <td class="seven wide"><code>{{ value }}</code>
{% endfor %}
</tbody>
</table>
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index ad2daeb2..d2eb79cc 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -113,16 +113,9 @@
<br><small><i>In <code>{{ release.abstracts[0].mimetype }}</code> format</i></small>
{% endif %}
-{% if release.extra %}
-<h3>Extra Metadata (raw JSON)</h3>
-<table class="ui definition single line fixed compact small unstackable table">
-<tbody>
-{% for (key, value) in release.extra.items() %}
- <tr><td class="three wide right aligned"><code>{{ key }}</code></td>
- <td class="seven wide"><code>{{ value }}</code>
-{% endfor %}
-</tbody>
-</table>
+
+{% if entity.extra %}
+ {{ entity_macros.extra_metadata(entity.extra) }}
{% endif %}