FreedomBox/plinth/templates/breadcrumbs.html
Sunil Mohan Adapa 1d14d4a4d6
ui: Rename 'plinth_extras' template tags module to 'extras'
- Remove yet another reference to 'plinth'.

Tests:

- Some basic pages work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-03-19 19:14:58 -04:00

28 lines
689 B
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load extras %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{% for url, breadcrumb in breadcrumbs.items reversed %}
{% if breadcrumb.is_active %}
<li class="breadcrumb-item active" aria-current="page">
{{ breadcrumb.name }}
</li>
{% else %}
<li class="breadcrumb-item">
<a href="{{ url }}">
{% if breadcrumb.url_name == 'index' %}
{% icon 'home' %}
{% else %}
{{ breadcrumb.name }}
{% endif %}
</a>
</li>
{% endif %}
{% endfor %}
</ol>
</nav>