{% extends 'base.html' %} {% load helpers %} {% load cables %} {% block content %}
{% if trace_svg %}
Cable Trace
{{ trace_svg }}
{% endif %}
Related Paths
{# Viewing a single lane (e.g. one subinterface): offer a way back to the parent's full trace. #} {% if request.GET.cablepath_id %} {% with trace_url=object|viewname:"trace" %} {% endwith %} {% endif %} {% for cablepath in related_paths %} {% empty %} {% endfor %}
Origin Destination Segments
View full trace ({{ object.parent }} / {{ object }} — all paths)
{{ cablepath.origin.parent }} / {{ cablepath.origin }}{# Breakout trunk: annotate the lane with its specific child (sub)interface, in brackets. #} {% with subinterface=cablepath|breakout_subinterface_for_path %}{% if subinterface %} [{{ subinterface }}]{% endif %}{% endwith %} {% if cablepath.destination %} {{ cablepath.destination }} ({{ cablepath.destination.parent }}) {% else %} Incomplete {% endif %} {{ cablepath.segment_count }}
None found
{% endblock %}