summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_view_metadata.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-13 17:17:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-13 17:17:22 -0700
commit16126c5901c435ea6610eff8b7211226c6f125d5 (patch)
tree429a4772a4990e8158f0dbc9714b02c8b0412f07 /python/fatcat_web/templates/entity_view_metadata.html
parentf1abe85e8c35a23122f65b47dd55d8135239cf93 (diff)
downloadfatcat-16126c5901c435ea6610eff8b7211226c6f125d5.tar.gz
fatcat-16126c5901c435ea6610eff8b7211226c6f125d5.zip
refactor all entities to new UI style
Diffstat (limited to 'python/fatcat_web/templates/entity_view_metadata.html')
-rw-r--r--python/fatcat_web/templates/entity_view_metadata.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/entity_view_metadata.html b/python/fatcat_web/templates/entity_view_metadata.html
new file mode 100644
index 00000000..5ce97d10
--- /dev/null
+++ b/python/fatcat_web/templates/entity_view_metadata.html
@@ -0,0 +1,16 @@
+{% set entity_view = "metadata" %}
+{% import "entity_macros.html" as entity_macros %}
+{% extends "entity_base.html" %}
+
+{% block entity_main %}
+
+{% if entity.extra %}
+ <h3>Extra Metadata (raw JSON)</h3>
+ {{ entity_macros.extra_metadata(entity.extra) }}
+{% endif %}
+
+<h3>Entity Metadata (schema)</h3>
+{{ entity_macros.extra_metadata(entity._metadata) }}
+
+{% endblock %}
+