{% extends 'base/layout.html' %} {% load helpers %} {% block title %}Cable Trace for {{ object|meta:"verbose_name"|bettertitle }} {{ object }}{% endblock %} {% block content %}
{# Cable trace SVG & options #}
{% if path %}
{% with traced_path=path.origin.trace %} {% if path.is_split %}

Path split!

Select a node below to continue:

{% 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 %}
{% else %}

No paths found

{% endif %}
{# Related paths #}
Related Paths
{% for cablepath in related_paths %} {% empty %} {% endfor %}
Origin Destination Segments
{{ cablepath.origin.parent_object }} / {{ cablepath.origin }} {% if cablepath.destination %} {{ cablepath.destination }} ({{ cablepath.destination.parent_object }}) {% else %} Incomplete {% endif %} {{ cablepath.segment_count }}
None found
{% endblock %}