aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/genotypes/base.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-10 16:49:35 -0600
committerFrederick Muriuki Muriithi2024-12-10 16:49:35 -0600
commitfbf9a5c77768645568de2a96a82d25f18a61e0b0 (patch)
treee6a123986aeb6d4fa3672a5a788dae7ee8a214e4 /uploader/templates/genotypes/base.html
parentd42804d717993457078d5d6f1a2010215d6183f0 (diff)
downloadgn-uploader-fbf9a5c77768645568de2a96a82d25f18a61e0b0.tar.gz
Retain population for "List Markers" page
For UI consistency, and as a convenience to the users, retain the population details for the "List Markers" page to help them navigate more easily using the breadcrumbs.
Diffstat (limited to 'uploader/templates/genotypes/base.html')
-rw-r--r--uploader/templates/genotypes/base.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/uploader/templates/genotypes/base.html b/uploader/templates/genotypes/base.html
index 56819e5..7d61312 100644
--- a/uploader/templates/genotypes/base.html
+++ b/uploader/templates/genotypes/base.html
@@ -6,11 +6,15 @@
{%else%}
class="breadcrumb-item"
{%endif%}>
- {%if dataset is mapping%}
+ {%if population is mapping%}
<a href="{{url_for('species.populations.genotypes.list_genotypes',
species_id=species.SpeciesId,
- population_id=population.Id,
- dataset_id=dataset.Id)}}">{{dataset.Name}}</a>
+ population_id=population.Id)}}">
+ {%if dataset is defined and dataset is mapping%}
+ {{dataset.Name}}
+ {%else%}
+ Genotypes
+ {%endif%}</a>
{%else%}
<a href="{{url_for('species.populations.genotypes.index')}}">Genotypes</a>
{%endif%}