{% extends 'generic/object_retrieve.html' %} {% load helpers %} {% block content_left_page %}
Cable
{% if object.cable_type %} {% elif not object.breakout_eligible %} {% endif %}
Type {{ object.get_type_display|placeholder }}
Status {{ object.status| hyperlinked_object_with_color }}
Label {{ object.label|placeholder }}
Cable Type {% if object.cable_type %} {{ object.cable_type|hyperlinked_object }} {% else %} {% endif %}
Lanes {{ object.connected_lanes }} / {{ object.total_lanes }} connected
Breakout not available for this cable's termination types
Color {% if object.color %}   {% else %} {% endif %}
Length {% if object.length %} {{ object.length }} {{ object.get_length_unit_display }} {% else %} {% endif %}
{% endblock content_left_page %} {% block content_right_page %} {% with conns=object.get_connections %}
Connections {% if object.cable_type.is_breakout %} {{ conns.a_connector_count }}A → {{ conns.b_connector_count }}B {% endif %}
{% for row in conns.rows %} {% if row.a_rowspan > 0 %} 1 %} rowspan="{{ row.a_rowspan }}"{% endif %} class="align-top border-end"> {% if object.cable_type.is_breakout %} A{{ row.a.connector }} {% if row.a.lanes > 1 %}{{ row.a.lanes }} lanes{% endif %}
{% endif %} {% include 'dcim/inc/cable_connection_termination.html' with term=row.a.termination %} {% endif %} {% if row.b_rowspan > 0 %} 1 %} rowspan="{{ row.b_rowspan }}"{% endif %} class="align-top"> {% if object.cable_type.is_breakout %} B{{ row.b.connector }} {% if row.b.lanes > 1 %}{{ row.b.lanes }} lanes{% endif %}
{% endif %} {% include 'dcim/inc/cable_connection_termination.html' with term=row.b.termination %} {% endif %}
{% endfor %}
Side A Side B
{% if object.cable_type %}
Lane Mapping {{ object.cable_type|hyperlinked_object }}
{# Wrapper shrink-wraps the diagram so it centers when it fits and scrolls when it doesn't. #}
{{ object.get_mapping_diagram_svg }}
{% endif %} {% endwith %} {% endblock content_right_page %} {% block javascript %} {{ block.super }} {% if object.cable_type %} {% endif %} {% endblock javascript %}