mirror of
https://github.com/torproject/lego.git
synced 2024-11-23 17:49:41 +00:00
20 lines
729 B
HTML
20 lines
729 B
HTML
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb bg-light m-0 small">
|
|
{% set crumbs = [] %}
|
|
{% set current = {'crumb': this} %}
|
|
{% for i in this._path.split("/") %}
|
|
{% if current.crumb is not none %}
|
|
{% if crumbs.insert(0, current.crumb) %}{% endif %}
|
|
{% if current.update({"crumb": current.crumb.parent}) %}{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% for crumb in crumbs %}
|
|
{% if this._path == crumb._path %}
|
|
<li class="breadcrumb-item active">{{ crumb.title }}</li>
|
|
{% else %}
|
|
<li class="breadcrumb-item" aria-current="page"><a href="{{ crumb|url }}">{{ crumb.title }}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ol>
|
|
</nav>
|