aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/genotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-19 13:43:21 -0500
committerFrederick Muriuki Muriithi2024-09-19 13:44:06 -0500
commitd4fd4693423d99f500bfcd65cea42ed47e8d59e0 (patch)
tree129bb97d6026e1ec182677e3979c31b29550355b /uploader/templates/genotypes
parent954f7e90db1904d6bcb906985928625ce50179dd (diff)
downloadgn-uploader-d4fd4693423d99f500bfcd65cea42ed47e8d59e0.tar.gz
Only show a single genotype dataset.
It is expected that there is only ever a single genotype dataset for any one particular population.
Diffstat (limited to 'uploader/templates/genotypes')
-rw-r--r--uploader/templates/genotypes/list-genotypes.html23
1 files changed, 10 insertions, 13 deletions
diff --git a/uploader/templates/genotypes/list-genotypes.html b/uploader/templates/genotypes/list-genotypes.html
index 8afd591..3780f85 100644
--- a/uploader/templates/genotypes/list-genotypes.html
+++ b/uploader/templates/genotypes/list-genotypes.html
@@ -95,14 +95,8 @@
<p>The genotype data is organised under various genotype datasets. You can
click on the link for the relevant dataset to view a little more information
about it.</p>
- <p>You can also create a new genotype dataset by clicking the button below.
- <br />
- <a href="#create-new-genotype-dataset"
- title="Create a new genotype dataset for the '{{population.FullName}}' population for the '{{species.FullName}}' species."
- class="btn btn-primary">
- create new genotype dataset</a></p>
- {%if datasets | length > 0%}
+ {%if dataset is defined %}
<table class="table">
<thead>
<tr>
@@ -112,7 +106,6 @@
</thead>
<tbody>
- {%for dataset in datasets%}
<tr>
<td>{{dataset.Name}}</td>
<td><a href="{{url_for('species.populations.genotypes.view_dataset',
@@ -122,14 +115,18 @@
title="View details regarding and manage dataset '{{dataset.FullName}}'">
{{dataset.FullName}}</a></td>
</tr>
- {%endfor%}
</tbody>
</table>
{%else%}
- <p class="text-warning">
- <span class="glyphicon glyphicon-exclamation-sign"></span>
- There are no genotype datasets to display, yet!
- </p>
+ <p class="text-warning">
+ <span class="glyphicon glyphicon-exclamation-sign"></span>
+ There is no genotype dataset defined for this population.
+ </p>
+ <p>
+ <a href="#create-new-genotype-dataset"
+ title="Create a new genotype dataset for the '{{population.FullName}}' population for the '{{species.FullName}}' species."
+ class="btn btn-primary">
+ create new genotype dataset</a></p>
{%endif%}
</div>
{%endblock%}