diff options
author | Frederick Muriuki Muriithi | 2024-12-10 15:42:06 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-12-10 15:45:30 -0600 |
commit | 98700fb44015852798fa7baabf727e8dcd2cd7a7 (patch) | |
tree | 58fff1bab6f074dee1aa7c454812d8be7d63762f /uploader/templates/populations | |
parent | 544db333dcd6bddd2d664b8fcf0003d9edfa7a68 (diff) | |
download | gn-uploader-98700fb44015852798fa7baabf727e8dcd2cd7a7.tar.gz |
Improve breadcrumbs
Update the breadcrumb links such that each will lead back the parent
section rather than to generic section pages. This is updated for the
relevant parts of the UI.
Diffstat (limited to 'uploader/templates/populations')
-rw-r--r-- | uploader/templates/populations/base.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uploader/templates/populations/base.html b/uploader/templates/populations/base.html index d763fc1..9db8083 100644 --- a/uploader/templates/populations/base.html +++ b/uploader/templates/populations/base.html @@ -6,7 +6,13 @@ {%else%} class="breadcrumb-item" {%endif%}> + {%if population is mapping%} + <a href="{{url_for('species.populations.view_population', + species_id=species.SpeciesId, + population_id=population.Id)}}">{{population.Name}}</a> + {%else%} <a href="{{url_for('species.populations.index')}}">Populations</a> + {%endif%} </li> {%block lvl3_breadcrumbs%}{%endblock%} {%endblock%} |