2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

Updated breadcrumbs to use bootstrap

This commit is contained in:
Oliver
2018-04-14 23:25:33 +10:00
parent 204874dcb4
commit 8578c8a1a7
7 changed files with 52 additions and 120 deletions

View File

@ -1,9 +1,13 @@
<div class="navigation">
<a href="/stock/list/">Stock</a> >
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item{% if location is None %} active" aria-current="page{% endif %}"><a href="/stock/list/">Parts</a></li>
{% if location %}
{% for path_item in location.parentpath %}
<a href="/stock/list/?location={{ path_item.id }}">{{ path_item.name }}</a> >
<li class='breadcrumb-item'><a href="/stock/list/?location={{ path_item.id }}">{{ path_item.name }}</a></li>
{% endfor %}
<a href="/stock/list/?location={{ location.id }}">{{ location.name }}</a>
<li class='breadcrumb-item active' aria-current='page'><a href="/stock/list/?location={{ location.id }}">{{ location.name }}</a></li>
{% endif %}
</ol>
</nav>
</div>