1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Standardize object breadcrumbs

This commit is contained in:
jeremystretch
2021-07-20 12:14:01 -04:00
parent d938b6621d
commit 856956afce
59 changed files with 72 additions and 253 deletions

View File

@@ -3,8 +3,10 @@
{% load plugins %}
{% block breadcrumbs %}
<li class="breadcrumb-item"><a href="{% url 'dcim:platform_list' %}">Platforms</a></li>
<li class="breadcrumb-item">{{ object }}</li>
{{ block.super }}
{% if object.manufacturer %}
<li class="breadcrumb-item"><a href="{% url 'dcim:platform_list' %}?manufacturer={{ object.manufacturer.slug }}">{{ object.manufacturer }}</a></li>
{% endif %}
{% endblock %}
{% block content %}