Skip to content

Commit 9c960c2

Browse files
committed
Fixes #18318: Correct navigation breadcrumbs for module type UI view
1 parent ed54122 commit 9c960c2

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

netbox/templates/dcim/inc/devicetype_breadcrumbs.html

Lines changed: 0 additions & 2 deletions
This file was deleted.

netbox/templates/dcim/moduletype.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
{% block breadcrumbs %}
1010
{{ block.super }}
11-
{% include 'dcim/inc/devicetype_breadcrumbs.html' %}
11+
<li class="breadcrumb-item">
12+
<a href="{% url 'dcim:moduletype_list' %}?manufacturer_id={{ object.manufacturer.pk }}">{{ object.manufacturer }}</a>
13+
</li>
1214
{% endblock %}
1315

1416
{% block extra_controls %}

netbox/templates/dcim/moduletype/component_templates.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
{% load helpers %}
44
{% load i18n %}
55

6-
{% block title %}{{ object.manufacturer }} {{ object.model }}{% endblock %}
7-
8-
{% block breadcrumbs %}
9-
{{ block.super }}
10-
{% include 'dcim/inc/devicetype_breadcrumbs.html' %}
11-
{% endblock %}
12-
136
{% block extra_controls %}
147
{% include 'dcim/inc/moduletype_buttons.html' %}
158
{% endblock %}

0 commit comments

Comments
 (0)