FreedomBox/plinth/templates/breadcrumbs.html
Sunil Mohan Adapa 80730bc9b3
ui: Use inline SVG icons for breadcrumbs
Tests:

- The home icon appears as before in breadcrumb in light/dark themes.

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

28 lines
696 B
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load plinth_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>