From f480ae7bc26334c228f4b157a9faa2597eb84907 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 4 Sep 2024 12:59:07 +0300 Subject: Use div-adjacent element instead of hard-coding the table width. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/templates/wiki/history.html | 220 ++++++++++++++++---------------- 1 file changed, 111 insertions(+), 109 deletions(-) (limited to 'gn2') diff --git a/gn2/wqflask/templates/wiki/history.html b/gn2/wqflask/templates/wiki/history.html index 0ca4f5e7..649db7d4 100644 --- a/gn2/wqflask/templates/wiki/history.html +++ b/gn2/wqflask/templates/wiki/history.html @@ -5,7 +5,6 @@ width: 18em; } - table tbody th, table tbody td { padding: 3px; @@ -13,119 +12,122 @@ table { margin-left: 1em; - max-width: 60em !important; } {% endblock %} {% block content %} {{ flash_me() }}
-

GeneWiki Entry History

-

- Most Recent Version: -

- - - - - - - {% if most_recent["species"] %} - - - - - {% endif %} - {% if most_recent["pubmed_ids"] %} - - - - - {% endif %} - {% if most_recent["web_url"] %} - - - - - {% endif %} - - - - - {% if most_recent["categories"] %} - - - - - {% endif %} - - - - - {% if most_recent["reason"] %} - - - - - {% endif %} - -
Gene Symbol:{{ most_recent["symbol"] }}
Species:{{ most_recent["species"] }}
PubMed IDs: - {% for id in most_recent["pubmed_ids"] %} - {{ id }}  - {% endfor %} -
Web URL:{{ most_recent["web_url"] }}
Entry:{{ most_recent["comment"] }}
Category:{{ '; '.join(most_recent["categories"]) }}
Add Time:{{ most_recent["created"] }}
Reason for Modification:{{ most_recent["reason"] }}
-

- Previous Version: -

- {% for version in previous_versions %} - - - - - - {% if version["species"] %} - - - - - {% endif %} - {% if version["pubmed_ids"] %} - - - - - {% endif %} - {% if version["web_url"] %} - - - - - {% endif %} - - - - - {% if version["categories"] %} - - - - - {% endif %} - - - - - {% if version["reason"] %} - - - - - {% endif %} -
Gene Symbol:{{ version["symbol"] }}
Species:{{ version["species"] }}
PubMed IDs: - {% for id in version["pubmed_ids"] %} - {{ id }}  - {% endfor %} -
Web URL:{{ version["web_url"] }}
Entry:{{ version["comment"] }}
Category:{{ '; '.join(version["categories"]) }}
Add Time:{{ version["created"] }}
Reason for Modification:{{ version["reason"] }}
- {% endfor %} +
+
+

GeneWiki Entry History

+

+ Most Recent Version: +

+ + + + + + + {% if most_recent["species"] %} + + + + + {% endif %} + {% if most_recent["pubmed_ids"] %} + + + + + {% endif %} + {% if most_recent["web_url"] %} + + + + + {% endif %} + + + + + {% if most_recent["categories"] %} + + + + + {% endif %} + + + + + {% if most_recent["reason"] %} + + + + + {% endif %} + +
Gene Symbol:{{ most_recent["symbol"] }}
Species:{{ most_recent["species"] }}
PubMed IDs: + {% for id in most_recent["pubmed_ids"] %} + {{ id }}  + {% endfor %} +
Web URL:{{ most_recent["web_url"] }}
Entry:{{ most_recent["comment"] }}
Category:{{ '; '.join(most_recent["categories"]) }}
Add Time:{{ most_recent["created"] }}
Reason for Modification:{{ most_recent["reason"] }}
+

+ Previous Version: +

+ {% for version in previous_versions %} + + + + + + {% if version["species"] %} + + + + + {% endif %} + {% if version["pubmed_ids"] %} + + + + + {% endif %} + {% if version["web_url"] %} + + + + + {% endif %} + + + + + {% if version["categories"] %} + + + + + {% endif %} + + + + + {% if version["reason"] %} + + + + + {% endif %} +
Gene Symbol:{{ version["symbol"] }}
Species:{{ version["species"] }}
PubMed IDs: + {% for id in version["pubmed_ids"] %} + {{ id }}  + {% endfor %} +
Web URL:{{ version["web_url"] }}
Entry:{{ version["comment"] }}
Category:{{ '; '.join(version["categories"]) }}
Add Time:{{ version["created"] }}
Reason for Modification:{{ version["reason"] }}
+ {% endfor %} +
+
{% endblock %} -- cgit v1.2.3