diff options
author | Alexander Kabui | 2021-10-06 12:21:25 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-10-06 12:21:25 +0300 |
commit | 3af474a660d30bf618452bd44438a7cc768b8667 (patch) | |
tree | b25d9dd73fa939f96fbf67c0fd8f992e046b036c | |
parent | 6b4b7a5774f42ff6be1fb5fde6ba1fef632cd1a4 (diff) | |
download | genenetwork2-3af474a660d30bf618452bd44438a7cc768b8667.tar.gz |
display images
-rw-r--r-- | wqflask/wqflask/templates/test_wgcna_results.html | 25 |
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 |