aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates
diff options
context:
space:
mode:
authorJohn Nduli2024-10-15 17:46:20 +0300
committerBonfaceKilz2024-10-15 18:17:12 +0300
commit7d0e59077935bcc588980f85e07aa79b5936b7a7 (patch)
tree917d1c698b8db866f15f0096a8038db1be4b63ab /gn2/wqflask/templates
parent18a47aa42c0244aa067adb954e66c72789e17a12 (diff)
downloadgenenetwork2-7d0e59077935bcc588980f85e07aa79b5936b7a7.tar.gz
fix: use url_for to get genewiki url
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r--gn2/wqflask/templates/show_trait_details.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/templates/show_trait_details.html b/gn2/wqflask/templates/show_trait_details.html
index ab2efa04..bfd42de3 100644
--- a/gn2/wqflask/templates/show_trait_details.html
+++ b/gn2/wqflask/templates/show_trait_details.html
@@ -222,7 +222,7 @@
<button type="button" class="btn btn-default" title="Check probe locations at UCSC" onclick="window.open('{{ UCSC_BLAT_URL }}', '_blank')">Verify</button>
{% endif %}
{% if this_trait.symbol != None %}
- <button type="button" class="btn btn-default" title="Write or review comments about this gene" onclick="window.open('http://localhost:5012/genewiki/{{ this_trait.symbol }}', '_blank')">(GN2) GeneWiki</button>
+ <button type="button" class="btn btn-default" title="Write or review comments about this gene" onclick="window.open('{{ url_for('display_genewiki_page', symbol=this_trait.symbol) }}', '_blank')">(GN2) GeneWiki</button>
<button type="button" class="btn btn-default" title="Write or review comments about this gene" onclick="window.open('http://gn1.genenetwork.org/webqtl/main.py?FormID=geneWiki&symbol={{ this_trait.symbol }}', '_blank')">(GN1) GeneWiki</button>
{% if dataset.group.species == "mouse" or dataset.group.species == "rat" %}
<button type="button" class="btn btn-default" title="View SNPs and Indels" onclick="window.open('/snp_browser?first_run=true&species={{ dataset.group.species }}&gene_name={{ this_trait.symbol }}&limit_strains=on', '_blank')">SNPs</button>