about summary refs log tree commit diff
path: root/uploader/templates/phenotypes/view-dataset.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-30 16:36:53 -0500
committerFrederick Muriuki Muriithi2024-09-30 16:36:53 -0500
commit1696242aa80f489a8ed4e5a01a30a1fd813dd4f3 (patch)
treeb4549590c2320dc70dee96a9a03c179f4683e8f9 /uploader/templates/phenotypes/view-dataset.html
parent35419644dd9093630649093a4e2fba06c19ffb0c (diff)
downloadgn-uploader-1696242aa80f489a8ed4e5a01a30a1fd813dd4f3.tar.gz
Initialise views for a specific phenotype
Each phenotype is independent, of all others, and they are only put
into datasets mostly for easy coralling of phenotypes related to a
specific populations. As such, the system will probably need to
provide a way to view (and possibly edit) each phenotype independent
of all the others.

This also fits in with the auth.
Diffstat (limited to 'uploader/templates/phenotypes/view-dataset.html')
-rw-r--r--uploader/templates/phenotypes/view-dataset.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index fc393d6..959b02a 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -69,7 +69,13 @@
       {%for pheno in phenotypes%}
       <tr>
         <td>{{pheno.sequence_number}}</td>
-        <td>{{pheno.InbredSetCode}}_{{pheno["pxr.Id"]}}</td>
+        <td><a href="{{url_for('species.populations.phenotypes.view_phenotype',
+                     species_id=species.SpeciesId,
+                     population_id=population.Id,
+                     dataset_id=dataset.Id,
+                     xref_id=pheno['pxr.Id'])}}"
+               title="View phenotype details">
+            {{pheno.InbredSetCode}}_{{pheno["pxr.Id"]}}</a></td>
         <td>{{pheno.Post_publication_description or pheno.Pre_publication_abbreviation or pheno.Original_description}}</td>
       </tr>
       {%else%}