From d5c6bb7abfb3535c1fa5d0d8df95645a213ab030 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 23 Jun 2022 20:11:28 +0000 Subject: Remove HTML table from collections/view.html and replace with list of column definitions passed to create_datatable.js --- wqflask/wqflask/templates/collections/view.html | 215 +++++++++++++++--------- 1 file changed, 138 insertions(+), 77 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index 6d0e3edd..6ea129f9 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -95,72 +95,9 @@
- | Index | -Dataset | -Record | -Symbol | -Description | -Location | -Mean | -High P ? | -Peak Location | -Effect Size ? | -||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | -{{ loop.index }} | -{{ this_trait.dataset.fullname }} | -- - {{ this_trait.display_name }} - - | - {% if this_trait.symbol %} -{% if this_trait.symbol|length > 20 %}{{ this_trait.symbol[:20] }}...{% else %}{{ this_trait.symbol }}{% endif %} | - {% elif this_trait.abbreviation %} -{% if this_trait.abbreviation|length > 20 %}{{ this_trait.abbreviation[:20] }}...{% else %}{{ this_trait.abbreviation }}{% endif %} | - {% else %} -N/A | - {% endif %} - {% if this_trait.dataset.type == "Geno" %} -Marker: {{ this_trait.name }} | - {% elif this_trait.description_display != "" %} -{{ this_trait.description_display }} | - {% else %} -N/A | - {% endif %} -{{ this_trait.location_repr }} | -{{ '%0.3f' % this_trait.mean|float }} | - {% if this_trait.LRS_score_repr|float > 0 %} -{{ '%0.3f' % this_trait.LRS_score_repr|float }} | - {% else %} -N/A | - {% endif %} -{{ this_trait.LRS_location_repr }} | - {% if this_trait.additive|float != 0 %} -{{ '%0.3f' % this_trait.additive|float }} | - {% else %} -N/A | - {% endif %} -Loading... |
-