diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index 18b147b75..96c2c892e 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -15,9 +15,13 @@ AVAILABLE_LABEL = mark_safe('Available') PREFIX_LINK = """ {% load helpers %} -{% for i in record.depth|as_range %} - -{% endfor %} +{% if record.depth %} +
+ {% for i in record.depth|as_range %} + + {% endfor %} +
+{% endif %} {{ record.prefix }} """ diff --git a/netbox/project-static/dist/netbox-dark.css b/netbox/project-static/dist/netbox-dark.css index ca3ff9ccd..91838758f 100644 Binary files a/netbox/project-static/dist/netbox-dark.css and b/netbox/project-static/dist/netbox-dark.css differ diff --git a/netbox/project-static/dist/netbox-light.css b/netbox/project-static/dist/netbox-light.css index e2e969bbd..6f8469116 100644 Binary files a/netbox/project-static/dist/netbox-light.css and b/netbox/project-static/dist/netbox-light.css differ diff --git a/netbox/project-static/dist/netbox.js.map b/netbox/project-static/dist/netbox.js.map index 782ee338b..d5ef1dc21 100644 Binary files a/netbox/project-static/dist/netbox.js.map and b/netbox/project-static/dist/netbox.js.map differ diff --git a/netbox/project-static/styles/netbox.scss b/netbox/project-static/styles/netbox.scss index ec4a7e752..d100e9111 100644 --- a/netbox/project-static/styles/netbox.scss +++ b/netbox/project-static/styles/netbox.scss @@ -422,7 +422,7 @@ main.login-container { padding: 0; .nav-link { - padding: .5rem; + padding: 0.5rem; } @include media-breakpoint-down(md) { @@ -866,6 +866,20 @@ div.card > div.card-header > div.table-controls { border-bottom: 1px solid $nav-tabs-border-color; } +// Object hierarchy indicators. +.record-depth { + display: inline; + font-size: $font-size-base; + user-select: none; + opacity: 0.33; + + // Add spacing to the last or only dot. + span:only-of-type, + span:last-of-type { + margin-right: map.get($spacers, 1); + } +} + #django-messages { position: fixed; right: $spacer;