diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-07 19:42:10 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-07 19:42:10 -0800 |
commit | 41d0d30d788eedf3d5d8ac65a1f432a4604211f7 (patch) | |
tree | b48976fa2a9f24ec017c038a0d1506b1bbe26f94 /python/fatcat_web/templates | |
parent | ad5d65b33064bfc30f0c7aaedd3332bd59794b6c (diff) | |
download | fatcat-41d0d30d788eedf3d5d8ac65a1f432a4604211f7.tar.gz fatcat-41d0d30d788eedf3d5d8ac65a1f432a4604211f7.zip |
container view: don't display status/type if unknown
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r-- | python/fatcat_web/templates/container_view.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index 138c943e..c5f68367 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -88,10 +88,16 @@ {% endif %} {% endif %} +{% if container.container_type != None or container.publication_status != None %} <div class="ui segment attached"> - <b>Type</b> <code>{{ container.container_type or 'unknown' }}</code><br> - <b>Status</b> <code>{{ container.publication_status or 'unknown' }}</code><br> + {% if container.container_type != None %} + <b>Publication Type</b> <code>{{ container.container_type or 'unknown' }}</code><br> + {% endif %} + {% if container.publication_status != None %} + <b>Publication Status</b> <code>{{ container.publication_status or 'unknown' }}</code><br> + {% endif %} </div> +{% endif %} {% if container.issnl != None or container.issne != None or container.issnp != None or container.wikidata_qid != None %} <div class="ui segment attached"> |