|
@@ -12,6 +12,18 @@
|
|
|
<i class="fa fa-fw fa-keyboard-o"></i> {{ csp }}
|
|
<i class="fa fa-fw fa-keyboard-o"></i> {{ csp }}
|
|
|
</td>
|
|
</td>
|
|
|
|
|
|
|
|
|
|
+ {# Cable #}
|
|
|
|
|
+ <td>
|
|
|
|
|
+ {% with cable=csp.get_connected_cable %}
|
|
|
|
|
+ {% if cable %}
|
|
|
|
|
+ <a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
|
|
|
|
+ {% if cable.far_end != csp.connected_endpoint %}
|
|
|
|
|
+ to <a href="{{ cable.far_end.device.get_absolute_url }}">{{ cable.far_end.device }}</a> {{ cable.far_end }}
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ {% endwith %}
|
|
|
|
|
+ </td>
|
|
|
|
|
+
|
|
|
{# Connection #}
|
|
{# Connection #}
|
|
|
{% if csp.connected_endpoint %}
|
|
{% if csp.connected_endpoint %}
|
|
|
<td>
|
|
<td>
|
|
@@ -26,18 +38,6 @@
|
|
|
</td>
|
|
</td>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
|
|
- {# Cable #}
|
|
|
|
|
- <td>
|
|
|
|
|
- {% with cable=csp.get_connected_cable %}
|
|
|
|
|
- {% if cable %}
|
|
|
|
|
- <a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
|
|
|
|
- {% if cable.far_end != csp.connected_endpoint %}
|
|
|
|
|
- to <a href="{{ cable.far_end.device.get_absolute_url }}">{{ cable.far_end.device }}</a> {{ cable.far_end }}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- {% endwith %}
|
|
|
|
|
- </td>
|
|
|
|
|
-
|
|
|
|
|
{# Actions #}
|
|
{# Actions #}
|
|
|
<td class="text-right">
|
|
<td class="text-right">
|
|
|
{% if perms.dcim.change_consoleserverport %}
|
|
{% if perms.dcim.change_consoleserverport %}
|