aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-03-26 19:39:15 +0000
committerzsloan2021-06-18 19:31:27 +0000
commit62667ad7bd1a9a9fb555a87c873d7a54ab7f03f9 (patch)
treece237ec8314d0655cca353bb2eb1518f2407a53b /wqflask
parentc73f55287b986844d4c894e80a3cb76c1f05d8f8 (diff)
downloadgenenetwork2-62667ad7bd1a9a9fb555a87c873d7a54ab7f03f9.tar.gz
Added checks in template for whether to explicitly set column width when wide column contents exist
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/search_result_page.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 1826c694..c165ad3c 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -179,7 +179,9 @@
columnDefs = [
{
'data': null,
+ {% if wide_columns_exist == true %}
'width': "25px",
+ {% endif %}
'orderDataType': "dom-checkbox",
'orderable': false,
'targets': 0,
@@ -190,7 +192,9 @@
{
'title': "Index",
'type': "natural",
+ {% if wide_columns_exist == true %}
'width': "35px",
+ {% endif %}
'targets': 1,
'data': "index"
}
@@ -235,14 +239,18 @@
{
'title': "<div style='text-align: right;'>Location</div>",
'type': "natural-minus-na",
+ {% if wide_columns_exist == true %}
'width': "125px",
+ {% endif %}
'targets': 5,
'data': "location"
},
{
'title': "<div style='text-align: right;'>Mean</div>",
'type': "natural-minus-na",
+ {% if wide_columns_exist == true %}
'width': "40px",
+ {% endif %}
'data': "mean",
'targets': 6,
'orderSequence': [ "desc", "asc"]
@@ -251,14 +259,17 @@
'title': "<div style='text-align: right;'>Peak <a href=\"{{ url_for('glossary_blueprint.glossary') }}#LRS\" target=\"_blank\" style=\"color: white;\">&nbsp;<i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i></a></div><div style='text-align: right;'>LOD&ensp;&emsp;</div>",
'type': "natural-minus-na",
'data': "lod_score",
- 'width': "60px",
+ {% if wide_columns_exist == true %}
+ 'width': "60px", {% endif %}
'targets': 7,
'orderSequence': [ "desc", "asc"]
},
{
'title': "<div style='text-align: right;'>Peak Location</div>",
'type': "natural-minus-na",
+ {% if wide_columns_exist == true %}
'width': "125px",
+ {% endif %}
'targets': 8,
'data': "lrs_location"
},
@@ -266,7 +277,9 @@
'title': "<div style='text-align: right;'>Effect <a href=\"{{ url_for('glossary_blueprint.glossary') }}#A\" target=\"_blank\" style=\"color: white;\">&nbsp;<i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i></a></div><div style='text-align: right;'>Size&ensp;&emsp;</div>",
'type': "natural-minus-na",
'data': "additive",
+ {% if wide_columns_exist == true %}
'width': "60px",
+ {% endif %}
'targets': 9,
'orderSequence': [ "desc", "asc"]
}{% elif dataset.type == 'Publish' %},