From dde320d4cee2b0bd571b7cf5ed157926fd8c2e5a Mon Sep 17 00:00:00 2001 From: Lei Yan Date: Tue, 4 Apr 2017 14:51:31 +0000 Subject: align X and Y meta info --- wqflask/wqflask/templates/corr_scatterplot.html | 51 ++++++++++++++++--------- 1 file 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 @@
-
X axis:
+
+ {% if trait_1.dataset.type == "ProbeSet" %} -
- - {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.tissue + " " + trait_1.dataset.name + ": " + trait_1.name|string}} - -
-
[{{trait_1.symbol}} on {{trait_1.location_repr}} Mb]
-
{{trait_1.description_display}}
+
+ X axis: + + {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.tissue + " " + trait_1.dataset.name + ": " + trait_1.name|string}} + +
+
+ [{{trait_1.symbol}} on {{trait_1.location_repr}} Mb] + {{trait_1.description_display}} +
{% elif trait_1.dataset.type == "Publish" %} -
+
+ X axis: {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.name + ": " + trait_1.name|string}} -
-
PubMed: {{trait_1.pubmed_text}}
-
{{trait_1.description_display}}
+
+
+ PubMed: {{trait_1.pubmed_text}} + {{trait_1.description_display}} +
{% endif %} -
+
-
Y axis:
{% if trait_2.dataset.type == "ProbeSet" %} -
+
+ Y axis: {{trait_2.dataset.group.species + " " + trait_2.dataset.group.name + " " + trait_2.dataset.tissue + " " + trait_2.dataset.name + ": " + trait_2.name|string}}
-
[{{trait_2.symbol}} on {{trait_2.location_repr}} Mb]
-
{{trait_2.description_display}}
+
+ [{{trait_2.symbol}} on {{trait_2.location_repr}} Mb] + {{trait_2.description_display}} +
{% elif trait_2.dataset.type == "Publish" %}
+ Y axis: {{trait_2.dataset.group.species + " " + trait_2.dataset.group.name + " " + trait_2.dataset.name + ": " + trait_2.name|string}}
-
PubMed: {{trait_2.pubmed_text}}
-
{{trait_2.description_display}}
+
+ PubMed: {{trait_2.pubmed_text}} + {{trait_2.description_display}} +
{% endif %} +
{% endblock %} -- cgit v1.2.3