From 5f11d9632b07a8db49191faaba9d13dac9f7d3c6 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 4 Sep 2024 13:43:23 +0300 Subject: Display rows even if they dont exist. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/templates/wiki/history.html | 108 ++++++++++++++------------------ 1 file changed, 46 insertions(+), 62 deletions(-) (limited to 'gn2/wqflask/templates/wiki') diff --git a/gn2/wqflask/templates/wiki/history.html b/gn2/wqflask/templates/wiki/history.html index 18ca0514..32c52b55 100644 --- a/gn2/wqflask/templates/wiki/history.html +++ b/gn2/wqflask/templates/wiki/history.html @@ -14,42 +14,35 @@ Gene Symbol: {{ most_recent.symbol }} - {% if most_recent.pubmed_ids %} - - PubMed IDs: - - {% for id in most_recent.pubmed_ids %} - {{ id }}  - {% endfor %} - - - {% endif %} - {% if most_recent.web_url %} - - Web URL: - {{ most_recent.web_url }} - - {% endif %} + + PubMed IDs: + + {% for id in most_recent.pubmed_ids %} + {{ id }}  + {% endfor %} + {% if not most_recent.pubmed_ids %}Not Available{% endif %} + + + + Web URL: + {{ most_recent.web_url or "Not Available" }} + Entry: {{ most_recent.comment }} - {% if most_recent.categories %} - - Category: - {{ '; '.join(most_recent.categories) }} - - {% endif %} + + Category: + {{ '; '.join(most_recent.categories) or "Not Available" }} + Add Time: {{ most_recent.created }} - {% if most_recent.reason %} - - Reason for Modification: - {{ most_recent.reason }} - - {% endif %} + + Reason for Modification: + {{ most_recent.reason or "Not Available" }} +

@@ -61,48 +54,39 @@ Gene Symbol: {{ version.symbol }} - {% if version.species %} - - Species: - {{ version.species }} - - {% endif %} - {% if version.pubmed_ids %} - - PubMed IDs: - - {% for id in version.pubmed_ids %} - {{ id }}  - {% endfor %} - - - {% endif %} - {% if version.web_url %} - - Web URL: - {{ version.web_url }} - - {% endif %} + + Species: + {{ version.species or "Not Available" }} + + + PubMed IDs: + + {% for id in version.pubmed_ids %} + {{ id }}  + {% endfor %} + {% if not most_recent.pubmed_ids %}Not Available{% endif %} + + + + Web URL: + {{ version.web_url or "Not Available " }} + Entry: {{ version.comment }} - {% if version.categories %} - - Category: - {{ '; '.join(version.categories) }} - - {% endif %} + + Category: + {{ '; '.join(version.categories) or "Not Available" }} + Add Time: {{ version.created }} - {% if version.reason %} - - Reason for Modification: - {{ version.reason }} - - {% endif %} + + Reason for Modification: + {{ version.reason or "Not Available" }} + {% endfor %} -- cgit v1.2.3