diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-15 13:08:51 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-15 13:14:05 -0800 |
commit | f9dc23aab85516a08fa17ab26796b93cbc610e8f (patch) | |
tree | 05fa557e2490516d8b5d3ae41038b5de85f2e85f /python/fatcat_web/templates | |
parent | 526e291f71b4f7018708de61b9e698b0ee9d894c (diff) | |
download | fatcat-f9dc23aab85516a08fa17ab26796b93cbc610e8f.tar.gz fatcat-f9dc23aab85516a08fa17ab26796b93cbc610e8f.zip |
web: remove generic entity fields from 'metadata' tab
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r-- | python/fatcat_web/templates/entity_view_metadata.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/entity_view_metadata.html b/python/fatcat_web/templates/entity_view_metadata.html index d1bd3c30..80aaf19c 100644 --- a/python/fatcat_web/templates/entity_view_metadata.html +++ b/python/fatcat_web/templates/entity_view_metadata.html @@ -5,7 +5,15 @@ {% block entity_main %} <h3>Entity Metadata (schema)</h3> -{{ entity_macros.extra_metadata(entity._metadata) }} +{% if entity._metadata %} + {{ entity_macros.extra_metadata(entity._metadata) }} +{% else %} + <table class="ui definition single line fixed compact small unstackable table"> + <tbody> + <tr><td class="center aligned"><i>No specific metadata for this entity</i></td> + </tbody> + </table> +{% endif %} <div style="float: right;"> <a href="{{ config.FATCAT_PUBLIC_API_HOST }}/{{ entity_type }}/{{ entity.ident }}">As JSON via API</a> </div> |