From 61e2b1bd49fa27c27a9a75e3582019ea624397cf Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Fri, 4 Dec 2020 20:48:39 +0300 Subject: fix edit links to correct markdown page --- wqflask/wqflask/templates/facilities.html | 2 +- wqflask/wqflask/templates/glossary.html | 2 +- wqflask/wqflask/templates/links.html | 2 +- wqflask/wqflask/templates/policies.html | 2 +- wqflask/wqflask/templates/references.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wqflask/wqflask/templates/facilities.html b/wqflask/wqflask/templates/facilities.html index a022b657..0db31b84 100644 --- a/wqflask/wqflask/templates/facilities.html +++ b/wqflask/wqflask/templates/facilities.html @@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/glossary.html b/wqflask/wqflask/templates/glossary.html
index 752c4b12..aaee7c5a 100644
--- a/wqflask/wqflask/templates/glossary.html
+++ b/wqflask/wqflask/templates/glossary.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/links.html b/wqflask/wqflask/templates/links.html
index 072e8429..6e91adae 100644
--- a/wqflask/wqflask/templates/links.html
+++ b/wqflask/wqflask/templates/links.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/policies.html b/wqflask/wqflask/templates/policies.html
index 4e0985d3..e36c9e08 100644
--- a/wqflask/wqflask/templates/policies.html
+++ b/wqflask/wqflask/templates/policies.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/references.html b/wqflask/wqflask/templates/references.html
index f723a1e8..04e60361 100644
--- a/wqflask/wqflask/templates/references.html
+++ b/wqflask/wqflask/templates/references.html
@@ -6,7 +6,7 @@
{% block content %}
--
cgit 1.4.1
From 9b7c09e14576a39c3f986e5b6e633b0380a72095 Mon Sep 17 00:00:00 2001
From: Alexander Kabui
Date: Fri, 4 Dec 2020 21:41:14 +0300
Subject: fix typo in wqflask/markdown_routes.py
---
wqflask/wqflask/markdown_routes.py | 2 +-
wqflask/wqflask/templates/glossary.html | 2 +-
wqflask/wqflask/templates/links.html | 2 +-
wqflask/wqflask/templates/policies.html | 2 +-
wqflask/wqflask/templates/references.html | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/wqflask/wqflask/markdown_routes.py b/wqflask/wqflask/markdown_routes.py
index 601845d7..3109a352 100644
--- a/wqflask/wqflask/markdown_routes.py
+++ b/wqflask/wqflask/markdown_routes.py
@@ -64,7 +64,7 @@ def links():
@policies_blueprint.route("/")
def policies():
return render_template(
- "links.html",
+ "policies.html",
rendered_markdown=render_markdown("general/policies/policies.md")), 200
diff --git a/wqflask/wqflask/templates/glossary.html b/wqflask/wqflask/templates/glossary.html
index aaee7c5a..58b325e5 100644
--- a/wqflask/wqflask/templates/glossary.html
+++ b/wqflask/wqflask/templates/glossary.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/links.html b/wqflask/wqflask/templates/links.html
index 6e91adae..ae52785c 100644
--- a/wqflask/wqflask/templates/links.html
+++ b/wqflask/wqflask/templates/links.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/policies.html b/wqflask/wqflask/templates/policies.html
index e36c9e08..efe8a731 100644
--- a/wqflask/wqflask/templates/policies.html
+++ b/wqflask/wqflask/templates/policies.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/references.html b/wqflask/wqflask/templates/references.html
index 04e60361..a8d8dced 100644
--- a/wqflask/wqflask/templates/references.html
+++ b/wqflask/wqflask/templates/references.html
@@ -6,7 +6,7 @@
{% block content %}
--
cgit 1.4.1
From 0b20fe6881818fd7cbdd24bbb3df18563816216c Mon Sep 17 00:00:00 2001
From: Alexander Kabui
Date: Fri, 4 Dec 2020 21:59:41 +0300
Subject: replace tree with blob
---
wqflask/wqflask/templates/facilities.html | 2 +-
wqflask/wqflask/templates/glossary.html | 2 +-
wqflask/wqflask/templates/links.html | 2 +-
wqflask/wqflask/templates/policies.html | 2 +-
wqflask/wqflask/templates/references.html | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/wqflask/wqflask/templates/facilities.html b/wqflask/wqflask/templates/facilities.html
index 0db31b84..56b127f9 100644
--- a/wqflask/wqflask/templates/facilities.html
+++ b/wqflask/wqflask/templates/facilities.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/glossary.html b/wqflask/wqflask/templates/glossary.html
index 58b325e5..aaee7c5a 100644
--- a/wqflask/wqflask/templates/glossary.html
+++ b/wqflask/wqflask/templates/glossary.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/links.html b/wqflask/wqflask/templates/links.html
index ae52785c..6e91adae 100644
--- a/wqflask/wqflask/templates/links.html
+++ b/wqflask/wqflask/templates/links.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/policies.html b/wqflask/wqflask/templates/policies.html
index efe8a731..e36c9e08 100644
--- a/wqflask/wqflask/templates/policies.html
+++ b/wqflask/wqflask/templates/policies.html
@@ -10,7 +10,7 @@
diff --git a/wqflask/wqflask/templates/references.html b/wqflask/wqflask/templates/references.html
index a8d8dced..04e60361 100644
--- a/wqflask/wqflask/templates/references.html
+++ b/wqflask/wqflask/templates/references.html
@@ -6,7 +6,7 @@
{% block content %}
--
cgit 1.4.1
From 0dfdbcbb83ffe9b349c870d02a5812bcb296a74b Mon Sep 17 00:00:00 2001
From: zsloan
Date: Fri, 4 Dec 2020 14:57:02 -0600
Subject: Added option to toggle columns on show_trait page, including case
attribute columns
---
wqflask/wqflask/templates/show_trait.html | 27 +++++++++++++++++++
.../wqflask/templates/show_trait_edit_data.html | 30 ++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html
index 7b74a3f6..3923ad2f 100644
--- a/wqflask/wqflask/templates/show_trait.html
+++ b/wqflask/wqflask/templates/show_trait.html
@@ -221,6 +221,33 @@
primary_table.search($(this).val()).draw();
} );
+ $('.toggle-vis').on('click', function (e) {
+ e.preventDefault();
+
+ function toggle_column(column) {
+ //ZS: Toggle column visibility
+ column.visible( ! column.visible() );
+ if (column.visible()){
+ $(this).removeClass("active");
+ } else {
+ $(this).addClass("active");
+ }
+ }
+
+ // Get the column API object
+ var target_cols = $(this).attr('data-column').split(",")
+ for (let i = 0; i < target_cols.length; i++){
+ console.log("THE COL:", target_cols[i])
+ var column = primary_table.column( target_cols[i] );
+ toggle_column(column);
+
+ {% if sample_groups|length != 1 %}
+ var column2 = other_table.column( target_cols[i] );
+ toggle_column(column2);
+ {% endif %}
+ }
+ } );
+
{% if sample_groups|length != 1 %}
$('#other_searchbox').on( 'keyup', function () {
other_table.search($(this).val()).draw();
diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html
index 2e730248..4ad11a5e 100644
--- a/wqflask/wqflask/templates/show_trait_edit_data.html
+++ b/wqflask/wqflask/templates/show_trait_edit_data.html
@@ -1,6 +1,36 @@
To explore this image SVG you may want to open it in new browser page and zoom in. Or use an SVG viewing application.
+