diff --git a/netbox/templates/dcim/devicerole.html b/netbox/templates/dcim/devicerole.html index 72fdbd3ed..8fb8d9006 100644 --- a/netbox/templates/dcim/devicerole.html +++ b/netbox/templates/dcim/devicerole.html @@ -5,7 +5,10 @@ {% load i18n %} {% block breadcrumbs %} - + {{ block.super }} + {% for devicerole in object.get_ancestors %} + + {% endfor %} {% endblock %} {% block extra_controls %} diff --git a/netbox/templates/dcim/platform.html b/netbox/templates/dcim/platform.html index 26179d4a2..05eeb673a 100644 --- a/netbox/templates/dcim/platform.html +++ b/netbox/templates/dcim/platform.html @@ -9,6 +9,9 @@ {% if object.manufacturer %} {% endif %} + {% for platform in object.get_ancestors %} + + {% endfor %} {% endblock %} {% block extra_controls %} diff --git a/netbox/templates/dcim/powerpanel.html b/netbox/templates/dcim/powerpanel.html index 56f3c5f30..757904988 100644 --- a/netbox/templates/dcim/powerpanel.html +++ b/netbox/templates/dcim/powerpanel.html @@ -4,6 +4,9 @@ {{ block.super }} {% if object.location %} - + {% for location in object.location.get_ancestors %} + + {% endfor %} + {% endif %} {% endblock %}