aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/collect.py3
-rw-r--r--wqflask/wqflask/templates/collections/view.html6
2 files changed, 8 insertions, 1 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index 01274ba9..41ff47ae 100644
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -219,7 +219,8 @@ def view_collection():
json_version.append(jsonable(trait_ob))
collection_info = dict(trait_obs=trait_obs,
- uc=uc)
+ uc=uc,
+ heatmap_data_url="http://localhost:8080/api/heatmaps/clustered")
if "json" in params:
return json.dumps(json_version)
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index 9ec98ab1..09f9dd21 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -50,6 +50,12 @@
<button class="btn btn-default" id="deselect_all" type="button"><span class="glyphicon glyphicon-remove"></span> Deselect</button>
<button id="remove" class="btn btn-danger" data-url="/collections/remove" type="button" disabled><i class="icon-minus-sign"></i> Delete Rows</button>
<button id="delete" class="btn btn-danger submit_special" data-url="/collections/delete" title="Delete this collection" > Delete Collection</button>
+ <button id="clustered-heatmap"
+ class="btn btn-main"
+ data-url="{{heatmap_data_url}}"
+ title="Generate heatmap from this collection">
+ Clustered Heatmap
+ </button>
</form>
</div>
<div style="margin-top: 10px; margin-bottom: 5px;">