Enable breadcrumb support, use it on the login view

This commit is contained in:
Danielle McLean 2017-10-25 00:25:41 +11:00
parent c210650ca7
commit 84a34c89e7
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
7 changed files with 57 additions and 3 deletions

View file

@ -0,0 +1,14 @@
{% if crumbs %}
<nav class="breadcrumbs" aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
{% for crumb in crumbs %}
<li class="breadcrumb-item">
<a href="{% url crumb.route %}">{{ crumb.label }}</a>
</li>
{% endfor %}
<li class="breadcrumb-item active" aria-current="page">
{{ current.label }}
</li>
</ol>
</nav>
{% endif %}