aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-10-06 12:21:25 +0300
committerAlexander Kabui2021-10-06 12:21:25 +0300
commit3af474a660d30bf618452bd44438a7cc768b8667 (patch)
treeb25d9dd73fa939f96fbf67c0fd8f992e046b036c
parent6b4b7a5774f42ff6be1fb5fde6ba1fef632cd1a4 (diff)
downloadgenenetwork2-3af474a660d30bf618452bd44438a7cc768b8667.tar.gz
display images
-rw-r--r--wqflask/wqflask/templates/test_wgcna_results.html25
1 files changed, 14 insertions, 11 deletions
diff --git a/wqflask/wqflask/templates/test_wgcna_results.html b/wqflask/wqflask/templates/test_wgcna_results.html
index ac82647d..09763a80 100644
--- a/wqflask/wqflask/templates/test_wgcna_results.html
+++ b/wqflask/wqflask/templates/test_wgcna_results.html
@@ -23,6 +23,8 @@
}
</style>
<style type="text/css">
+
+
.container {
min-height: 100vh;
width: 100vw;
@@ -73,6 +75,13 @@
display: grid;
grid-template-columns: repeat(2, 200px);
}
+
+.control-image{
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ width: 80vw;
+}
</style>
<div class="container">
<div>
@@ -104,11 +113,12 @@
<div>
<!-- end -->
- <div>
- <a href="/tmp/{{ results['data']['output']['imageLoc'] }}">
- CLuster dendogram
- </a>
+ {% if image["image_generated"] %}
+ <div >
+ <img class="control-image" src="data:image/jpeg;base64,{{ image['image_data']| safe }}">
</div>
+
+ {% endif %}
</div>
<div>
@@ -161,12 +171,5 @@ $(document).ready(function(){
} );
})
-
-
</script>
-
-
-
-
-
{% endblock %} \ No newline at end of file