From 89d445777e46e46234a5c49a3651a91024bc773c Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 15 Feb 2024 15:22:24 +0300 Subject: Rework how the tissueInfo and platformInfo are fetched in template. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/templates/metadata/dataset.html | 8 ++++---- 1 file 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 @@
{{ dataset.caseInfo|safe }}
{% endif %} - {% if dataset.tissue %} + {% if dataset.tissue and dataset.tissueInfo %}

About the Tissue {%if dataset.tissue and dataset.tissue.label %}({{ dataset.tissue.label }}) {% endif %}Used to Generate this Dataset

-
{{ dataset.tissue.tissueInfo|safe }}
+
{{ dataset.tissueInfo|safe }}
{% endif %} - {% if dataset.platform %} + {% if dataset.platform and dataset.platformInfo %}

About the Array Platform

-
{{ dataset.platform.platformInfo|safe }}
+
{{ dataset.platformInfo|safe }}
{% endif %} {% if dataset.processingInfo %} -- cgit 1.4.1