mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Corrected cable display
This commit is contained in:
parent
8f8df2b8e8
commit
dc67028bd9
@ -9,7 +9,10 @@
|
|||||||
<td>
|
<td>
|
||||||
{% with cable=cp.get_connected_cable %}
|
{% with cable=cp.get_connected_cable %}
|
||||||
{% if cable %}
|
{% if cable %}
|
||||||
via <a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
Cable <a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
||||||
|
{% if cable.far_end != cp.connected_endpoint %}
|
||||||
|
to <a href="{{ cable.far_end.device.get_absolute_url }}">{{ cable.far_end.device }}</a> {{ cable.far_end }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</td>
|
</td>
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
{% with cable=iface.get_connected_cable %}
|
{% with cable=iface.get_connected_cable %}
|
||||||
{% if cable %}
|
{% if cable %}
|
||||||
<a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
<a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
||||||
{% if cable.far_end != csp.connected_endpoint %}
|
{% if cable.far_end != iface.connected_endpoint %}
|
||||||
to <a href="{{ cable.far_end.device.get_absolute_url }}">{{ cable.far_end.device }}</a> {{ cable.far_end }}
|
to <a href="{{ cable.far_end.device.get_absolute_url }}">{{ cable.far_end.device }}</a> {{ cable.far_end }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -150,7 +150,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# IP addresses table #}
|
{# IP addresses table #}
|
||||||
<td colspan="7" style="padding: 0">
|
<td colspan="8" style="padding: 0">
|
||||||
<table class="table table-condensed interface-ips">
|
<table class="table table-condensed interface-ips">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-muted">
|
<tr class="text-muted">
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
{% with cable=po.get_connected_cable %}
|
{% with cable=po.get_connected_cable %}
|
||||||
{% if cable %}
|
{% if cable %}
|
||||||
<a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
<a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
||||||
|
{% if cable.far_end != po.connected_endpoint %}
|
||||||
|
to <a href="{{ cable.far_end.device.get_absolute_url }}">{{ cable.far_end.device }}</a> {{ cable.far_end }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</td>
|
</td>
|
||||||
|
@ -9,7 +9,10 @@
|
|||||||
<td>
|
<td>
|
||||||
{% with cable=pp.get_connected_cable %}
|
{% with cable=pp.get_connected_cable %}
|
||||||
{% if cable %}
|
{% if cable %}
|
||||||
via <a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
Cable <a href="{{ cable.get_absolute_url }}">{{ cable }}</a>
|
||||||
|
{% if cable.far_end != pp.connected_endpoint %}
|
||||||
|
to <a href="{{ cable.far_end.device.get_absolute_url }}">{{ cable.far_end.device }}</a> {{ cable.far_end }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user