{% extends 'generic/object.html' %} {% load i18n %} {% load helpers %} {% block extra_controls %} {{ block.super }} {% if not cable and perms.netbox_rack_concept.add_conceptcable %} {% trans "Connect" %} {% endif %} {% endblock %} {% block content %}

{% trans "Component" %}

{% if object.is_pass_through %} {% endif %}
{% trans "Device" %} {{ object.device|linkify }}
{% trans "Concept" %} {{ object.device.concept|linkify }}
{% trans "Name" %} {{ object.name }}
{% trans "Label" %} {{ object.label|placeholder }}
{% trans "Component type" %} {{ object.get_component_type_display }}
{% trans "Type" %} {{ object.port_type|placeholder }}
{% trans "Positions" %} {{ object.positions }}
{% trans "Description" %} {{ object.description|placeholder }}
{% if object.is_pass_through %}

{% trans "Pass-through mapping" %}

{% if paired_components %} {% for component, own_position, other_position in paired_components %} {% endfor %}
{% trans "Position" %} {{ own_position }} {{ component|linkify }} · {% trans "position" %} {{ other_position }}
{% else %}
{% trans "No mapping to a port on the other side. Sync the device's components again if this looks wrong." %}
{% endif %}
{% endif %}

{% trans "Connection" %}

{% if cable %}
{% trans "Cable" %} {{ cable|linkify }}
{% trans "Status" %} {% badge cable.get_status_display bg_color=cable.get_status_color %}
{% trans "Connected to" %} {{ object.peer.device|linkify }} · {{ object.peer|linkify }}
{% else %}
{% trans "Not connected." %}
{% endif %}
{% endblock %}