Skip to content

Commit

Permalink
Fixes #18318: Correct navigation breadcrumbs for module type UI view
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jan 7, 2025
1 parent ed54122 commit 9c960c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions netbox/templates/dcim/inc/devicetype_breadcrumbs.html

This file was deleted.

4 changes: 3 additions & 1 deletion netbox/templates/dcim/moduletype.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
7 changes: 0 additions & 7 deletions netbox/templates/dcim/moduletype/component_templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 9c960c2

Please sign in to comment.