about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-11-03 14:12:58 -0600
committerFrederick Muriuki Muriithi2025-11-03 14:12:58 -0600
commit28686e077af772d6e4b1848c72b97ab8a3f23348 (patch)
tree8dfa01276dc07b510fb2e158dcf372def59273dc /uploader
parent1ae0b5d4b296923dc3b342dd2cda0fc14c692e65 (diff)
downloadgn-uploader-28686e077af772d6e4b1848c72b97ab8a3f23348.tar.gz
Replace population descriptions with links to info.genenetwork.org
We no longer use the Description field in the database
directly. Instead, the details on populations are in
info.genenetwork.org and therefore, it makes more sense to link to
specific pages there than attempt reproducing the features here.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/templates/populations/list-populations.html7
-rw-r--r--uploader/templates/populations/view-population.html6
2 files changed, 9 insertions, 4 deletions
diff --git a/uploader/templates/populations/list-populations.html b/uploader/templates/populations/list-populations.html
index f780e94..a092e34 100644
--- a/uploader/templates/populations/list-populations.html
+++ b/uploader/templates/populations/list-populations.html
@@ -54,7 +54,7 @@
         <th></th>
         <th>Name</th>
         <th>Full Name</th>
-        <th>Description</th>
+        <th>Information</th>
       </tr>
     </thead>
 
@@ -71,7 +71,10 @@
           </a>
         </td>
         <td>{{population.FullName}}</td>
-        <td>{{population.Description}}</td>
+        <td><a href="https://info.genenetwork.org/species/source.php?SpeciesName={{species.Name}}&InbredSetName={{population.Name}}"
+               title="Link to detailed information on this population."
+               class="btn btn-info"
+               target="_blank">info</a></td>
       </tr>
       {%else%}
       <tr>
diff --git a/uploader/templates/populations/view-population.html b/uploader/templates/populations/view-population.html
index b23caeb..3b9661b 100644
--- a/uploader/templates/populations/view-population.html
+++ b/uploader/templates/populations/view-population.html
@@ -42,8 +42,10 @@
     <dt>Family</dt>
     <dd>{{population.Family}}</dd>
 
-    <dt>Description</dt>
-    <dd><pre>{{population.Description or "-"}}</pre></dd>
+    <dt>Information</dt>
+    <dd><a href="https://info.genenetwork.org/species/source.php?SpeciesName={{species.Name}}&InbredSetName={{population.Name}}"
+           title="Link to detailed information on this population."
+           target="_blank">Population Information</a></dd>
   </dl>
 </div>