aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/genotypes
diff options
context:
space:
mode:
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%}