{% extends "ui/panels/_base.html" %} {% load helpers i18n %} {% block panel_content %} {% if object.mark_connected %}
{% trans "Marked as connected" %}
{% elif object.cable %} {% if show_endpoints %}
{% trans "Cable" %} {{ object.cable|linkify }}
{% trans "Path status" %} {% if object.path.is_complete and object.path.is_active %} {% trans "Reachable" %} {% else %} {% trans "Not Reachable" %} {% endif %}
{% trans "Path endpoints" %} {% for endpoint in object.connected_endpoints %} {% if endpoint.parent_object %} {{ endpoint.parent_object|linkify }} {% endif %} {{ endpoint|linkify }} {% if not forloop.last %}
{% endif %} {% empty %} {{ ''|placeholder }} {% endfor %}
{% else %}
{% trans "Cable" %} {{ object.cable|linkify }}
{% trans "Connection status" %} {% if object.cable.status %} {{ object.cable.get_status_display }} {% else %} {{ object.cable.get_status_display }} {% endif %}
{% endif %} {% else %}
{% trans "Not Connected" %} {% if perms.dcim.add_cable %} {% if connect_options|length > 1 %} {% elif connect_options|length == 1 %} {% trans "Connect" %} {% endif %} {% endif %}
{% endif %} {% endblock panel_content %}