From 41d0d30d788eedf3d5d8ac65a1f432a4604211f7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 7 Feb 2022 19:42:10 -0800 Subject: container view: don't display status/type if unknown --- python/fatcat_web/templates/container_view.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'python/fatcat_web') 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 %}
- Type  {{ container.container_type or 'unknown' }}
- Status  {{ container.publication_status or 'unknown' }}
+ {% if container.container_type != None %} + Publication Type  {{ container.container_type or 'unknown' }}
+ {% endif %} + {% if container.publication_status != None %} + Publication Status  {{ container.publication_status or 'unknown' }}
+ {% endif %}
+{% endif %} {% if container.issnl != None or container.issne != None or container.issnp != None or container.wikidata_qid != None %}
-- cgit v1.2.3