diff options
author | zsloan | 2024-01-08 20:40:18 +0000 |
---|---|---|
committer | zsloan | 2024-01-08 20:41:33 +0000 |
commit | 3719591a877486a3eff8db904e91624893fdaa20 (patch) | |
tree | 60bb81c97c7aeb9aa90906206492b8cbe0b38ec9 /gn2/wqflask/templates | |
parent | 737ce9ce7d413c14d69f4ccf09121210f3c3a231 (diff) | |
download | genenetwork2-3719591a877486a3eff8db904e91624893fdaa20.tar.gz |
Update DB info link on search result page and trait page
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r-- | gn2/wqflask/templates/search_result_page.html | 2 | ||||
-rw-r--r-- | gn2/wqflask/templates/show_trait_details.html | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gn2/wqflask/templates/search_result_page.html b/gn2/wqflask/templates/search_result_page.html index cade198a..c4a36524 100644 --- a/gn2/wqflask/templates/search_result_page.html +++ b/gn2/wqflask/templates/search_result_page.html @@ -17,7 +17,7 @@ <div style="padding-top: 10px; padding-bottom: 10px; font-size: 16px;"> <!-- Need to customize text more for other types of searches --> - <p>We searched <a href="http://genenetwork.org/webqtl/main.py?FormID=sharinginfo&{% if dataset.accession_id %}GN_AccessionId={{dataset.accession_id }}{% else %}InfoPageName={{ dataset.name }}{% endif %}">{{ dataset.fullname }}</a> + <p>We searched {% if dataset.type != "ProbeSet" %}<a href="https://info.genenetwork.org/species/source.php?SpeciesName={{ dataset.group.species }}&InbredSetName={{ dataset.group.name }}" target="_blank">{{ dataset.fullname }}</a>{% else %}<a href="https://info.genenetwork.org/infofile/source.php?GN_AccesionId={{ dataset.accession_id }}" target="_blank">{{ dataset.fullname }}</a>{% endif %} <br> to find all records {% if go_term is not none %} diff --git a/gn2/wqflask/templates/show_trait_details.html b/gn2/wqflask/templates/show_trait_details.html index 9c12393d..8447fbc7 100644 --- a/gn2/wqflask/templates/show_trait_details.html +++ b/gn2/wqflask/templates/show_trait_details.html @@ -59,13 +59,15 @@ <tr> <td><b>Database</b></td> <td> - <a href="http://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&InfoPageName={{ dataset.name }}" target="_blank"> + {% if dataset.type != "ProbeSet" %} + <a href="https://info.genenetwork.org/species/source.php?SpeciesName={{ dataset.group.species }}&InbredSetName={{ dataset.group.name }}" target="_blank"> {{ dataset.fullname }} </a> - <br/> - <a href="{{ url_for('get_dataset', name=dataset.name) }}" target="_blank"> - GN2 Link: {{ dataset.fullname }} + {% else %} + <a href="https://info.genenetwork.org/infofile/source.php?GN_AccesionId={{ dataset.accession_id }}" target="_blank"> + {{ dataset.fullname }} </a> + {% endif %} </td> </tr> {% if this_trait.probe_set_specificity %} |