diff options
| author | Frederick Muriuki Muriithi | 2025-12-29 11:56:58 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-12-29 11:56:58 -0600 |
| commit | 3e50c29359da9cdd02ca585ae900ccb2e0f8668a (patch) | |
| tree | 2568edece571914d3473463b545f1f1ebe89cf35 /uploader/templates/phenotypes/view-dataset.html | |
| parent | b40f14bb409d54fda957e2d8269f1bc86bd34e58 (diff) | |
| download | gn-uploader-3e50c29359da9cdd02ca585ae900ccb2e0f8668a.tar.gz | |
Phenotypes: Move feature to new UI templates.
Diffstat (limited to 'uploader/templates/phenotypes/view-dataset.html')
| -rw-r--r-- | uploader/templates/phenotypes/view-dataset.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html index c634a48..1fd15b2 100644 --- a/uploader/templates/phenotypes/view-dataset.html +++ b/uploader/templates/phenotypes/view-dataset.html @@ -1,7 +1,6 @@ {%extends "phenotypes/base.html"%} {%from "flash_messages.html" import flash_all_messages%} {%from "macro-table-pagination.html" import table_pagination%} -{%from "populations/macro-display-population-card.html" import display_population_card%} {%block title%}Phenotypes{%endblock%} @@ -119,12 +118,10 @@ </div> {%endblock%} -{%block sidebarcontents%} -{{display_population_card(species, population)}} -{%endblock%} - {%block javascript%} +<script type="text/javascript" src="/static/js/urls.js"></script> + <script type="text/javascript"> $(function() { var species_id = {{species.SpeciesId}}; @@ -151,11 +148,12 @@ var spcs_id = {{species.SpeciesId}}; var pop_id = {{population.Id}}; var dtst_id = {{dataset.Id}}; - return `<a href="/species/${spcs_id}` + + var url = buildURLFromCurrentURL( + (`/species/${spcs_id}` + `/populations/${pop_id}` + `/phenotypes/datasets/${dtst_id}` + - `/phenotype/${pheno.xref_id}` + - `" target="_blank">` + + `/phenotype/${pheno.xref_id}`)); + return `<a href="${url.toString()}" target="_blank">` + `${pheno.InbredSetCode}_${pheno.xref_id}` + `</a>`; } |
