From 5e23e579b731fd150d01511c622ffb6fd9dafdbc Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 1 May 2020 12:10:58 -0500 Subject: Aesthetic table changes to view collection and correlation result pages --- wqflask/wqflask/templates/collections/view.html | 8 ++++---- wqflask/wqflask/templates/correlation_page.html | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index 6639f46a..1a622bb4 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -8,7 +8,7 @@ {% block content %} -
+

{{ uc.name }} @@ -122,9 +122,9 @@ {% if this_trait.symbol %} - {{ this_trait.symbol }} + {% if this_trait.symbol|length > 20 %}{{ this_trait.symbol[:20] }}...{% else %}{{ this_trait.symbol }}{% endif %} {% elif this_trait.abbreviation %} - {{ this_trait.abbreviation }} + {% if this_trait.abbreviation|length > 20 %}{{ this_trait.abbreviation[:20] }}...{% else %}{{ this_trait.abbreviation }}{% endif %} {% else %} N/A {% endif %} @@ -190,7 +190,7 @@ { "type": "natural", "width": 50 }, { "type": "natural" }, { "type": "natural", "width": 120 }, - { "type": "natural", "width": 120 }, + { "type": "natural" }, { "type": "natural" }, { "type": "natural", "width": 130 }, { "type": "natural", "width": 35 }, diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index 03b03aa7..b73a6981 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -126,7 +126,7 @@ {% for trait in correlation_results %} - {{ loop.index }} + {{ loop.index }} {{ trait.LRS_location_repr }} {% if trait.additive != "" %}{{ '%0.3f' % trait.additive|float }}{% else %}N/A{% endif %} {% elif target_dataset.type == "Publish" %} + {% if trait.abbreviation %} + {% if trait.abbreviation|length > 20 %}{{ trait.abbreviation[:20] }}...{% else %}{{ trait.abbreviation }}{% endif %} + {% else %} + N/A + {% endif %} {{ trait.description_display }} {{ trait.authors }} @@ -398,6 +403,7 @@ { "type": "natural" }, { "type": "natural" }, { "type": "natural" }, + { "type": "natural" }, { "type": "natural", "width": "20%" }, { "type": "natural", "width": "12%" }, { "orderDataType": "dom-innertext" }, -- cgit v1.2.3