aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-02-07 19:42:10 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-02-07 19:42:10 -0800
commit41d0d30d788eedf3d5d8ac65a1f432a4604211f7 (patch)
treeb48976fa2a9f24ec017c038a0d1506b1bbe26f94
parentad5d65b33064bfc30f0c7aaedd3332bd59794b6c (diff)
downloadfatcat-41d0d30d788eedf3d5d8ac65a1f432a4604211f7.tar.gz
fatcat-41d0d30d788eedf3d5d8ac65a1f432a4604211f7.zip
container view: don't display status/type if unknown
-rw-r--r--python/fatcat_web/templates/container_view.html10
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> &nbsp;<code>{{ container.container_type or 'unknown' }}</code><br>
- <b>Status</b> &nbsp;<code>{{ container.publication_status or 'unknown' }}</code><br>
+ {% if container.container_type != None %}
+ <b>Publication Type</b> &nbsp;<code>{{ container.container_type or 'unknown' }}</code><br>
+ {% endif %}
+ {% if container.publication_status != None %}
+ <b>Publication Status</b> &nbsp;<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">