- Add
+ Add
{% if this_trait.dataset.type == 'ProbeSet' or this_trait.dataset.type == 'Geno' %}
{% if this_trait.symbol != None %}
@@ -246,7 +246,7 @@
{% endif %}
{% endif %}
- View in GN1
+ Go to GN1
{% if admin_status == "owner" or admin_status == "edit-admins" or admin_status == "edit-access" %}
--
cgit v1.2.3
From 2637872ed32be6223eb464a76370a4e38850b5cd Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 29 Sep 2020 14:42:33 -0500
Subject: Fixed issue where negative additive effect values weren't being
displayed in the "view collection" page
* wqflask/wqflask/templates/collections/view.html - Apparently the
correct way to check if a value can be cast to a float in Jinja2 is to
say "value != 0"; it previous said "value > 0" which exlcuded all
negative values
---
wqflask/wqflask/templates/collections/view.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index dce814dd..13d45d62 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -144,7 +144,7 @@
N/A
{% endif %}
{{ this_trait.LRS_location_repr }}
- {% if this_trait.additive|float > 0 %}
+ {% if this_trait.additive|float != 0 %}
{{ '%0.3f' % this_trait.additive|float }}
{% else %}
N/A
--
cgit v1.2.3
From 1320283cb1374365777dbe61e9c4ec6d42cba40d Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 29 Sep 2020 16:10:07 -0500
Subject: Made a variety of changes to table pages
* wqflask/wqflask/static/new/css/show_trait.css - Adding position
relative and a 2px offset for glyphicons to make them better align with
button text
* wqflask/wqflask/templates/collections/view.html - Added glyphicon to
Download button, changed a couple head names (Peak Location and Effect
Size), made Location and Peak Location columns the same width, and made
the "?" glossary links a little larger and red
* wqflask/wqflask/templates/search_result_page.html - same as above
* wqflask/wqflask/templates/show_trait_edit_data.html - Added glyphicon
to Export button
---
wqflask/wqflask/static/new/css/show_trait.css | 5 +++++
wqflask/wqflask/templates/collections/view.html | 10 ++++------
wqflask/wqflask/templates/search_result_page.html | 20 ++++++++++----------
wqflask/wqflask/templates/show_trait_edit_data.html | 2 +-
4 files changed, 20 insertions(+), 17 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/static/new/css/show_trait.css b/wqflask/wqflask/static/new/css/show_trait.css
index 338302af..92deab20 100644
--- a/wqflask/wqflask/static/new/css/show_trait.css
+++ b/wqflask/wqflask/static/new/css/show_trait.css
@@ -46,4 +46,9 @@ table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td {
table.dataTable.cell-border tbody tr th:first-child,
table.dataTable.cell-border tbody tr td:first-child {
border-left: 1px solid #ccc;
+}
+
+.glyphicon {
+ position: relative;
+ top: 2px;
}
\ No newline at end of file
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index 13d45d62..ca8aece3 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -16,8 +16,6 @@
This collection has {{ '{}'.format(numify(trait_obs|count, "record", "records")) }}
-
-
-
+ Export
Excel
CSV
--
cgit v1.2.3
From 556ae146be4b2a7220e1f7634ca02bab587cbc7e Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 29 Sep 2020 16:23:39 -0500
Subject: Removed "Color By Trait" button from the Bar Chart, because it was
meant to work with the figure we used before switching to Plotly. This
feature will need to be redone to work with Plotly
* wqflask/wqflask/templates/show_trait_statistics.html - commented out
Color By Trait button until it's reimplemented
---
wqflask/wqflask/templates/show_trait_statistics.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/templates/show_trait_statistics.html b/wqflask/wqflask/templates/show_trait_statistics.html
index 974081d3..7bdb3ef9 100644
--- a/wqflask/wqflask/templates/show_trait_statistics.html
+++ b/wqflask/wqflask/templates/show_trait_statistics.html
@@ -76,11 +76,13 @@
Sort By Value
+
--
cgit v1.2.3
From 5a5dd3daf638cd95358bf102fd8d8c2023d44aae Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 29 Sep 2020 16:41:29 -0500
Subject: Trait page link-out buttons were previously inside
tags, but this
caused there to be a small line between buttons when hovering over them
(because the tags were wider than the button itself); this was changed to
instead just be an "onclick" on the button (which is also a bit more concise)
* wqflask/wqflask/templates/show_trait_details.html - Replaced tags
with onclick for trait page link-out buttons
---
wqflask/wqflask/templates/show_trait_details.html | 30 ++++++-----------------
1 file changed, 7 insertions(+), 23 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/templates/show_trait_details.html b/wqflask/wqflask/templates/show_trait_details.html
index 2284ca99..4aced50c 100644
--- a/wqflask/wqflask/templates/show_trait_details.html
+++ b/wqflask/wqflask/templates/show_trait_details.html
@@ -215,43 +215,27 @@
--
cgit v1.2.3
From c291a82b0127048d3aa969f82d42d29acb142ea2 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Wed, 30 Sep 2020 14:59:30 -0500
Subject: Fixed issue where columns sorted by inner text (text inside link
tags) didn't sort all rows when a table is paginated and has more than one
page
* wqflask/wqflask/static/new/javascript/search_results.js - Added
"extract_inner_text" function for getting the inner text from a string
containing HTML in order to avoid using DataTables' orderDataType (which
can only fetch values directly from the DOM, which is why sorting wasn't
working with multiple pages), and also included this function in the
"natural-minus-na" data type (so columns can be sorted that contain both
HTML/links and N/A values)
* wqflask/wqflask/templates/collections/view.html - Changed record column
to use "natural-minus-na" sort method in order to fix the inner-text
sorting issue + added sorting to the checkbox column (in the same way as
it already works in the search result page)
* wqflask/wqflask/templates/search_results_page.html - Replaced the
columns that used orderDataType with using the updated
"natural-minus-na" data type
* wqflask/wqflask/templates/correlation_page.html - Fixed issue where
N/As in the Year column (for phenotype correlations) were still displayed as links
---
wqflask/wqflask/static/new/javascript/search_results.js | 10 ++++++++--
wqflask/wqflask/templates/collections/view.html | 14 +++++++-------
wqflask/wqflask/templates/correlation_page.html | 4 ++++
wqflask/wqflask/templates/search_result_page.html | 9 +--------
4 files changed, 20 insertions(+), 17 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/static/new/javascript/search_results.js b/wqflask/wqflask/static/new/javascript/search_results.js
index 61134a88..86660126 100644
--- a/wqflask/wqflask/static/new/javascript/search_results.js
+++ b/wqflask/wqflask/static/new/javascript/search_results.js
@@ -261,6 +261,12 @@ $(function() {
let na_equivalent_vals = ["N/A", "--", ""]; //ZS: Since there are multiple values that should be treated the same as N/A
+ function extract_inner_text(the_string){
+ var span = document.createElement('span');
+ span.innerHTML = the_string;
+ return span.textContent || span.innerText;
+ }
+
function sort_NAs(a, b, sort_function){
if ( na_equivalent_vals.includes(a) && na_equivalent_vals.includes(b)) {
return 0;
@@ -276,10 +282,10 @@ $(function() {
$.extend( $.fn.dataTableExt.oSort, {
"natural-minus-na-asc": function (a, b) {
- return sort_NAs(a, b, naturalAsc)
+ return sort_NAs(extract_inner_text(a), extract_inner_text(b), naturalAsc)
},
"natural-minus-na-desc": function (a, b) {
- return sort_NAs(a, b, naturalDesc)
+ return sort_NAs(extract_inner_text(a), extract_inner_text(b), naturalDesc)
}
});
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index ca8aece3..bc487a59 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -164,13 +164,13 @@
{% block js %}
-
+