mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-01 09:30:29 +00:00
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>
28 lines
696 B
HTML
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>
|