Fixes #18318: Correct navigation breadcrumbs for module type UI view

This commit is contained in:
Jeremy Stretch 2025-01-07 09:15:37 -05:00
parent ed541220e8
commit 9c960c2387
3 changed files with 3 additions and 10 deletions

View File

@ -1,2 +0,0 @@
<li class="breadcrumb-item"><a href="{% url 'dcim:devicetype_list' %}?manufacturer_id={{ object.manufacturer.pk }}">{{ object.manufacturer }}</a></li>

View File

@ -8,7 +8,9 @@
{% block breadcrumbs %}
{{ block.super }}
{% include 'dcim/inc/devicetype_breadcrumbs.html' %}
<li class="breadcrumb-item">
<a href="{% url 'dcim:moduletype_list' %}?manufacturer_id={{ object.manufacturer.pk }}">{{ object.manufacturer }}</a>
</li>
{% endblock %}
{% block extra_controls %}

View File

@ -3,13 +3,6 @@
{% load helpers %}
{% load i18n %}
{% block title %}{{ object.manufacturer }} {{ object.model }}{% endblock %}
{% block breadcrumbs %}
{{ block.super }}
{% include 'dcim/inc/devicetype_breadcrumbs.html' %}
{% endblock %}
{% block extra_controls %}
{% include 'dcim/inc/moduletype_buttons.html' %}
{% endblock %}