Swapped the order of cable and connection fields

This commit is contained in:
Jeremy Stretch
2018-10-26 13:21:43 -04:00
parent 83dec3b587
commit 94946c5854
9 changed files with 57 additions and 59 deletions
+12 -12
View File
@@ -28,6 +28,18 @@
{# 802.1Q mode #}
<td>{{ iface.get_mode_display }}</td>
{# 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>
{# Connection or type #}
{% if iface.is_lag %}
<td colspan="2" class="text-muted">
@@ -69,18 +81,6 @@
</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 %}