Replace references to Interface.connection with connected_endpoint

This commit is contained in:
Jeremy Stretch
2018-10-29 14:12:02 -04:00
parent 8ebf7a7ad0
commit e75ef5fd2d
3 changed files with 23 additions and 27 deletions

View File

@@ -196,18 +196,16 @@
<td>802.1Q Mode</td>
<td>{{ connected_interface.get_mode_display }}</td>
</tr>
{% if interface.connection %}
<tr>
<td>Connection Status</td>
<td>
{% if interface.connection.connection_status %}
<span class="label label-success">{{ interface.connection.get_connection_status_display }}</span>
{% else %}
<span class="label label-info">{{ interface.connection.get_connection_status_display }}</span>
{% endif %}
</td>
</tr>
{% endif %}
<tr>
<td>Connection Status</td>
<td>
{% if interface.connection_status %}
<span class="label label-success">{{ interface.get_connection_status_display }}</span>
{% else %}
<span class="label label-info">{{ interface.get_connection_status_display }}</span>
{% endif %}
</td>
</tr>
</table>
{% else %}
<div class="panel-body text-muted">