Added cable connections to component lists

This commit is contained in:
Jeremy Stretch
2018-10-26 11:29:03 -04:00
parent 6bea8cc546
commit 957de0cd98
10 changed files with 162 additions and 56 deletions
+12
View File
@@ -69,6 +69,18 @@
</td>
{% endif %}
{# Cable #}
<td>
{% with cable=iface.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>
{# Buttons #}
<td class="text-right text-nowrap">
{% if show_graphs %}