aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Yan2017-04-04 14:51:31 +0000
committerLei Yan2017-04-04 14:51:31 +0000
commitdde320d4cee2b0bd571b7cf5ed157926fd8c2e5a (patch)
treef924e1cf43ea62c967a8c15cce633a2ddb13ef3a
parent16521bf0e09669149a71d34461b23aeacce6a34f (diff)
downloadgenenetwork2-dde320d4cee2b0bd571b7cf5ed157926fd8c2e5a.tar.gz
align X and Y meta info
-rw-r--r--wqflask/wqflask/templates/corr_scatterplot.html51
1 files changed, 32 insertions, 19 deletions
diff --git a/wqflask/wqflask/templates/corr_scatterplot.html b/wqflask/wqflask/templates/corr_scatterplot.html
index 140a7cca..810f4ca3 100644
--- a/wqflask/wqflask/templates/corr_scatterplot.html
+++ b/wqflask/wqflask/templates/corr_scatterplot.html
@@ -50,45 +50,58 @@
<div class="container">
<div id="chart1" class="qtlcharts"></div>
-<div>X axis:</div>
+<div style="margin-left: 80px;">
+
{% if trait_1.dataset.type == "ProbeSet" %}
- <div>
- <a href="{{url_for('show_trait_page', trait_id = trait_1.name, dataset = trait_1.dataset.name)}}">
- {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.tissue + " " + trait_1.dataset.name + ": " + trait_1.name|string}}
- </a>
- </div>
- <div>[{{trait_1.symbol}} on {{trait_1.location_repr}} Mb]</div>
- <div>{{trait_1.description_display}}</div>
+ <div>
+ X axis:
+ <a href="{{url_for('show_trait_page', trait_id = trait_1.name, dataset = trait_1.dataset.name)}}">
+ {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.tissue + " " + trait_1.dataset.name + ": " + trait_1.name|string}}
+ </a>
+ </div>
+ <div>
+ [{{trait_1.symbol}} on {{trait_1.location_repr}} Mb]
+ {{trait_1.description_display}}
+ </div>
{% elif trait_1.dataset.type == "Publish" %}
- <div>
+ <div>
+ X axis:
<a href="{{url_for('show_trait_page', trait_id = trait_1.name, dataset = trait_1.dataset.name)}}">
{{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.name + ": " + trait_1.name|string}}
</a>
- </div>
- <div><a href="{{trait_1.pubmed_link}}">PubMed: {{trait_1.pubmed_text}}</a></div>
- <div>{{trait_1.description_display}}</div>
+ </div>
+ <div>
+ <a href="{{trait_1.pubmed_link}}">PubMed: {{trait_1.pubmed_text}}</a>
+ {{trait_1.description_display}}
+ </div>
{% endif %}
-<br/>
+ <br/>
-<div>Y axis:</div>
{% if trait_2.dataset.type == "ProbeSet" %}
- <div>
+ <div>
+ Y axis:
<a href="{{url_for('show_trait_page', trait_id = trait_2.name, dataset = trait_2.dataset.name)}}">
{{trait_2.dataset.group.species + " " + trait_2.dataset.group.name + " " + trait_2.dataset.tissue + " " + trait_2.dataset.name + ": " + trait_2.name|string}}
</a>
</div>
- <div>[{{trait_2.symbol}} on {{trait_2.location_repr}} Mb]</div>
- <div>{{trait_2.description_display}}</div>
+ <div>
+ [{{trait_2.symbol}} on {{trait_2.location_repr}} Mb]
+ {{trait_2.description_display}}
+ </div>
{% elif trait_2.dataset.type == "Publish" %}
<div>
+ Y axis:
<a href="{{url_for('show_trait_page', trait_id = trait_2.name, dataset = trait_2.dataset.name)}}">
{{trait_2.dataset.group.species + " " + trait_2.dataset.group.name + " " + trait_2.dataset.name + ": " + trait_2.name|string}}
</a>
</div>
- <div><a href="{{trait_2.pubmed_link}}">PubMed: {{trait_2.pubmed_text}}</a></div>
- <div>{{trait_2.description_display}}</div>
+ <div>
+ <a href="{{trait_2.pubmed_link}}">PubMed: {{trait_2.pubmed_text}}</a>
+ {{trait_2.description_display}}
+ </div>
{% endif %}
+
</div>
{% endblock %}