|
|
@@ -22,13 +22,20 @@
|
|
|
{% for iface in interfaces %}
|
|
|
<tr id="{{ iface.name }}">
|
|
|
<td>{{ iface }}</td>
|
|
|
- {% if iface.connected_endpoint %}
|
|
|
+ {% if iface.connected_endpoint.device %}
|
|
|
<td class="configured_device" data="{{ iface.connected_endpoint.device }}">
|
|
|
<a href="{% url 'dcim:device' pk=iface.connected_endpoint.device.pk %}">{{ iface.connected_endpoint.device }}</a>
|
|
|
</td>
|
|
|
<td class="configured_interface" data="{{ iface.connected_endpoint }}">
|
|
|
<span title="{{ iface.connected_endpoint.get_form_factor_display }}">{{ iface.connected_endpoint }}</span>
|
|
|
</td>
|
|
|
+ {% elif iface.connected_endpoint.circuit %}
|
|
|
+ {% with circuit=iface.connected_endpoint.circuit %}
|
|
|
+ <td colspan="2">
|
|
|
+ <i class="fa fa-fw fa-globe" title="Circuit"></i>
|
|
|
+ <a href="{{ circuit.get_absolute_url }}">{{ circuit.provider }} {{ circuit }}</a>
|
|
|
+ </td>
|
|
|
+ {% endwith %}
|
|
|
{% else %}
|
|
|
<td colspan="2">None</td>
|
|
|
{% endif %}
|