From 92a73e5a99a86490c04017c9c195061633ec24db Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 20 Nov 2023 17:31:43 +0300 Subject: Update the phenotype page. Signed-off-by: Munyoki Kilyungi --- wqflask/wqflask/templates/phenotype.html | 113 +++++++++++++++++-------------- 1 file changed, 62 insertions(+), 51 deletions(-) diff --git a/wqflask/wqflask/templates/phenotype.html b/wqflask/wqflask/templates/phenotype.html index e3f588c7..51825ac5 100644 --- a/wqflask/wqflask/templates/phenotype.html +++ b/wqflask/wqflask/templates/phenotype.html @@ -14,83 +14,94 @@ {% block content %}

- {% if metadata.name %} - Phenotype: {{ metadata.name }} - {% else %} - {{ name }} - {% endif %} + Phenotype: {{ metadata.traitName }} ({{ metadata.abbreviation}})

- {% if metadata.inbredSetName %} - - - - - {% endif %} - - {% if metadata.speciesName %} - + - + + + + + - {% endif %} - {% if metadata.publicationDescription %} - + - - - {% endif %} + + - {% if metadata.author %} + {% if metadata.creator %} - {% if metadata.title %} - + - {% endif %} - {% if metadata.title %} - - - - - {% endif %} + + + + - {% if metadata.journal %} - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - {% endif %} + + + +
Group{{ metadata.inbredSetName }}
Species{{ metadata.speciesName }}{{ metadata.species or "N/A" }}
Group{{ metadata.group or "N/A" }}
Phenotype{{ metadata.publicationDescription }}
{{ metadata.description or "N/A"}}
Authors - {% if metadata.author is iterable %} - {{ metadata.author |join(", ") }} - {% for author in metadata.author %} - {{ author }} + {% if metadata.creator is iterable %} + {{ metadata.creator |join(", ") }} + {% for creator in metadata.creator %} + {{ creator }} {% endfor %} {% else %} - metadata.author + metadata.creator {% endif %} {% endif %}
Title{{ metadata.title }}{{ metadata.title or "N/A"}}
Title{{ metadata.title }}
Database + {% for database in metadata.dataset %} + {{ database.prefLabel }}
+ {% endfor %} +
Journal - {{ metadata.journal }} - {% if metadata.year %} - ( - - {{ metadata.year }} - - ) - {% endif %} -
Journal{{ metadata.journal or "N/A"}}
Volume{{ metadata.volume or "N/A"}}
Month{{ metadata.month or "N/A"}}
Page{{ metadata.page or "N/A"}}
Year{{ metadata.year or "N/A"}}
Mean{{ metadata.mean or "N/A"}}
LRS{{ metadata.LRS or "N/A"}}
Additive{{ metadata.Additive or "N/A"}}
-- cgit 1.4.1