diff --git a/CHANGELOG.md b/CHANGELOG.md index 1aca9a2e4..63326838b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ NetBox now supports modeling physical cables for console, power, and interface c ## Changes From v2.5-beta1 +* [#2554](https://github.com/digitalocean/netbox/issues/2554) - Fix cable trace display when following a rear port with no cable attached * [#2563](https://github.com/digitalocean/netbox/issues/2563) - Enable export templates for cables * [#2566](https://github.com/digitalocean/netbox/issues/2566) - Prevent both ends of a cable from connecting to the same termination point * [#2567](https://github.com/digitalocean/netbox/issues/2567) - Introduced proxy models to represent console/power/interface connections diff --git a/netbox/templates/dcim/cable_trace.html b/netbox/templates/dcim/cable_trace.html index 3211664ad..17cfd2025 100644 --- a/netbox/templates/dcim/cable_trace.html +++ b/netbox/templates/dcim/cable_trace.html @@ -23,18 +23,24 @@ {% include 'dcim/inc/cable_trace_end.html' with end=near_end %}
-

- - {% if cable.label %}{{ cable.label }}{% else %}Cable #{{ cable.pk }}{% endif %} - -

- {{ cable.get_status_display }}
- {{ cable.get_type_display|default:"" }} - {% if cable.length %}- {{ cable.length }}{{ cable.length_unit }}{% endif %} -   + {% if cable %} +

+ + {% if cable.label %}{{ cable.label }}{% else %}Cable #{{ cable.pk }}{% endif %} + +

+ {{ cable.get_status_display }}
+ {{ cable.get_type_display|default:"" }} + {% if cable.length %}- {{ cable.length }}{{ cable.length_unit }}{% endif %} +   + {% else %} +

No Cable

+ {% endif %}
- {% include 'dcim/inc/cable_trace_end.html' with end=far_end %} + {% if far_end %} + {% include 'dcim/inc/cable_trace_end.html' with end=far_end %} + {% endif %}
{% if not forloop.last %}
{% endif %}