aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/metadata
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-15 15:22:24 +0300
committerBonfaceKilz2024-02-15 15:26:37 +0300
commit89d445777e46e46234a5c49a3651a91024bc773c (patch)
treedcd90072f14f19ee64f000bb77e1617e499313d3 /gn2/wqflask/templates/metadata
parent9f0e533e7c34eb7794d3b77074669f627a599b5a (diff)
downloadgenenetwork2-89d445777e46e46234a5c49a3651a91024bc773c.tar.gz
Rework how the tissueInfo and platformInfo are fetched in template.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask/templates/metadata')
-rw-r--r--gn2/wqflask/templates/metadata/dataset.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/gn2/wqflask/templates/metadata/dataset.html b/gn2/wqflask/templates/metadata/dataset.html
index 83415544..23ceb3b5 100644
--- a/gn2/wqflask/templates/metadata/dataset.html
+++ b/gn2/wqflask/templates/metadata/dataset.html
@@ -118,16 +118,16 @@
<div>{{ dataset.caseInfo|safe }}</div>
{% endif %}
- {% if dataset.tissue %}
+ {% if dataset.tissue and dataset.tissueInfo %}
<h3><strong>About the Tissue
{%if dataset.tissue and dataset.tissue.label %}({{ dataset.tissue.label }})
{% endif %}Used to Generate this Dataset</strong></h3>
- <div>{{ dataset.tissue.tissueInfo|safe }}</div>
+ <div>{{ dataset.tissueInfo|safe }}</div>
{% endif %}
- {% if dataset.platform %}
+ {% if dataset.platform and dataset.platformInfo %}
<h3 title="{{ dataset.platform.label }}"><strong>About the Array Platform</strong></h3>
- <div>{{ dataset.platform.platformInfo|safe }}</div>
+ <div>{{ dataset.platformInfo|safe }}</div>
{% endif %}
{% if dataset.processingInfo %}