diff options
author | Frederick Muriuki Muriithi | 2024-12-10 16:49:35 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-12-10 16:49:35 -0600 |
commit | fbf9a5c77768645568de2a96a82d25f18a61e0b0 (patch) | |
tree | e6a123986aeb6d4fa3672a5a788dae7ee8a214e4 /uploader/templates/genotypes | |
parent | d42804d717993457078d5d6f1a2010215d6183f0 (diff) | |
download | gn-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')
-rw-r--r-- | uploader/templates/genotypes/base.html | 10 | ||||
-rw-r--r-- | uploader/templates/genotypes/list-genotypes.html | 3 | ||||
-rw-r--r-- | uploader/templates/genotypes/list-markers.html | 5 |
3 files changed, 13 insertions, 5 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%} diff --git a/uploader/templates/genotypes/list-genotypes.html b/uploader/templates/genotypes/list-genotypes.html index 2dc0d51..0f074fd 100644 --- a/uploader/templates/genotypes/list-genotypes.html +++ b/uploader/templates/genotypes/list-genotypes.html @@ -26,7 +26,8 @@ <p>There are a total of {{total_markers}} currently registered genetic markers for the "{{species.FullName}}" species. You can click <a href="{{url_for('species.populations.genotypes.list_markers', - species_id=species.SpeciesId)}}" + species_id=species.SpeciesId, + population_id=population.Id)}}" title="View genetic markers for species '{{species.FullName}}"> this link to view the genetic markers </a>. diff --git a/uploader/templates/genotypes/list-markers.html b/uploader/templates/genotypes/list-markers.html index 9198b44..a705ae3 100644 --- a/uploader/templates/genotypes/list-markers.html +++ b/uploader/templates/genotypes/list-markers.html @@ -13,7 +13,8 @@ class="breadcrumb-item" {%endif%}> <a href="{{url_for('species.populations.genotypes.list_markers', - species_id=species.SpeciesId)}}">List markers</a> + species_id=species.SpeciesId, + population_id=population.Id)}}">List markers</a> </li> {%endblock%} @@ -30,6 +31,7 @@ {%if start_from > 0%} <a href="{{url_for('species.populations.genotypes.list_markers', species_id=species.SpeciesId, + population_id=population.Id, start_from=start_from-count, count=count)}}"> <span class="glyphicon glyphicon-backward"></span> @@ -45,6 +47,7 @@ {%if start_from + count < total_markers%} <a href="{{url_for('species.populations.genotypes.list_markers', species_id=species.SpeciesId, + population_id=population.Id, start_from=start_from+count, count=count)}}"> Next |