aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/base.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-10 15:42:06 -0600
committerFrederick Muriuki Muriithi2024-12-10 15:45:30 -0600
commit98700fb44015852798fa7baabf727e8dcd2cd7a7 (patch)
tree58fff1bab6f074dee1aa7c454812d8be7d63762f /uploader/templates/phenotypes/base.html
parent544db333dcd6bddd2d664b8fcf0003d9edfa7a68 (diff)
downloadgn-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/phenotypes/base.html')
-rw-r--r--uploader/templates/phenotypes/base.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/base.html b/uploader/templates/phenotypes/base.html
index 3bc5dea..adbc012 100644
--- a/uploader/templates/phenotypes/base.html
+++ b/uploader/templates/phenotypes/base.html
@@ -6,7 +6,14 @@
{%else%}
class="breadcrumb-item"
{%endif%}>
+ {%if dataset is mapping%}
+ <a href="{{url_for('species.populations.phenotypes.view_dataset',
+ species_id=species.SpeciesId,
+ population_id=population.Id,
+ dataset_id=dataset.Id)}}">{{dataset.Name}}</a>
+ {%else%}
<a href="{{url_for('species.populations.phenotypes.index')}}">Phenotypes</a>
+ {%endif%}
</li>
{%block lvl4_breadcrumbs%}{%endblock%}
{%endblock%}