about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-03-20 11:54:50 +0300
committerFrederick Muriuki Muriithi2023-03-20 11:54:50 +0300
commitd7157ce2178ed31addd92b69a160f4ea9b092a42 (patch)
tree2942c8c673b33e52e148d06b28404f551758a433
parent6738e87abb68b5baa2fd7b040466738594d34df0 (diff)
downloadgenenetwork2-d7157ce2178ed31addd92b69a160f4ea9b092a42.tar.gz
oauth2: phenotypes: list/link at trait level
List/link the phenotypes at the trait level rather than at the dataset level.
-rw-r--r--wqflask/wqflask/templates/oauth2/data-list.html19
1 files changed, 16 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/oauth2/data-list.html b/wqflask/wqflask/templates/oauth2/data-list.html
index d153d413..6d0ae427 100644
--- a/wqflask/wqflask/templates/oauth2/data-list.html
+++ b/wqflask/wqflask/templates/oauth2/data-list.html
@@ -45,6 +45,10 @@
 
 	      <thead>
 		<tr>
+		  {%if dataset_type == "phenotype"%}
+		  <th>Trait ID</th>
+		  <th>Data Group</th>
+		  {%endif%}
 		  <th>Dataset Name</th>
 		  <th>Dataset Full Name</th>
 		  <th>Group</th>
@@ -59,14 +63,23 @@
 		      <input type="hidden" name="offset" value="{{offset or 0}}" />
 		      <input type="hidden" name="dataset_id" value="{{data_item.Id}}" />
 		      <input type="hidden" name="dataset_type" value="{{dataset_type}}" />
+		      {%if dataset_type == "phenotype"%}
 		      <td>
-			<a href="https://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&GN_AccessionId={{data_item.accession_id}}&InfoPageName={{data_item.Name}}"
+			<a href="/show_trait?trait_id={{data_item.Id}}&dataset={{data_item.dataset_name}}"
+			   title="Trait Page">
+			  {{data_item.Id}}
+			</a>
+		      </td>
+		      <td>{{data_item.InbredSetName}}</td>
+		      {%endif%}
+		      <td>
+			<a href="https://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&GN_AccessionId={{data_item.accession_id}}&InfoPageName={{data_item.dataset_name}}"
 			   title="Link to information on dataset '{{data_item.dataset_fullname}}'"
 			   target="_blank">
-			   {{data_item.Name}}
+			   {{data_item.dataset_name}}
 			</a>
 		      </td>
-		      <td>{{data_item.FullName}}</td>
+		      <td>{{data_item.dataset_fullname}}</td>
 		      <td>
 			<select name="group_id" required="required">
 			  <option value="">Select group</option>