diff --git a/netbox/templates/dcim/cable_trace.html b/netbox/templates/dcim/cable_trace.html index f7cbe2119..4e82568b7 100644 --- a/netbox/templates/dcim/cable_trace.html +++ b/netbox/templates/dcim/cable_trace.html @@ -6,44 +6,48 @@ {% block content %}
- -
- + -
+
{% with traced_path=path.origin.trace %} {% if path.is_split %} -
-

Path split!

-

Select a node below to continue:

-
    - {% for next_node in path.get_split_nodes %} - {% if next_node.cable %} -
  • - {{ next_node }} - (Cable {{ next_node.cable }}) -
  • - {% else %} -
  • {{ next_node }}
  • - {% endif %} - {% endfor %} -
-
- {% else %} -
-

Trace Completed

-
Total Segments: {{ traced_path|length }}
-
Total Length: - {% if total_length %} - {{ total_length|floatformat:"-2" }}{% if not is_definitive %}+{% endif %} Meters / - {{ total_length|meters_to_feet|floatformat:"-2" }} Feet +

Path split!

+

Select a node below to continue:

+
+ {% endfor %} + + {% else %} +

Trace Completed

+ + + + + + + + + +
Total segments{{ traced_path|length }}
Total length + {% if total_length %} + {{ total_length|floatformat:"-2" }}{% if not is_definitive %}+{% endif %} Meters / + {{ total_length|meters_to_feet|floatformat:"-2" }} Feet + {% else %} + N/A + {% endif %} +
{% endif %} {% endwith %}