mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Closes #2851: Include circuit provider in pass-through port connection details
This commit is contained in:
parent
3b4bcc881f
commit
57fecdbf17
@ -29,7 +29,19 @@
|
|||||||
<a href="{{ frontport.cable.get_absolute_url }}">{{ frontport.cable }}</a>
|
<a href="{{ frontport.cable.get_absolute_url }}">{{ frontport.cable }}</a>
|
||||||
</td>
|
</td>
|
||||||
{% with far_end=frontport.get_cable_peer %}
|
{% with far_end=frontport.get_cable_peer %}
|
||||||
<td><a href="{{ far_end.parent.get_absolute_url }}">{{ far_end.parent }}</a></td>
|
<td>
|
||||||
|
{% if far_end.parent.provider %}
|
||||||
|
<i class="fa fa-fw fa-globe" title="Circuit"></i>
|
||||||
|
<a href="{{ far_end.parent.get_absolute_url }}">
|
||||||
|
{{ far_end.parent.provider }}
|
||||||
|
{{ far_end.parent }}
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{{ far_end.parent.get_absolute_url }}">
|
||||||
|
{{ far_end.parent }}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td>{{ far_end }}</td>
|
<td>{{ far_end }}</td>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -28,7 +28,19 @@
|
|||||||
<a href="{{ rearport.cable.get_absolute_url }}">{{ rearport.cable }}</a>
|
<a href="{{ rearport.cable.get_absolute_url }}">{{ rearport.cable }}</a>
|
||||||
</td>
|
</td>
|
||||||
{% with far_end=rearport.get_cable_peer %}
|
{% with far_end=rearport.get_cable_peer %}
|
||||||
<td><a href="{{ far_end.parent.get_absolute_url }}">{{ far_end.parent }}</a></td>
|
<td>
|
||||||
|
{% if far_end.parent.provider %}
|
||||||
|
<i class="fa fa-fw fa-globe" title="Circuit"></i>
|
||||||
|
<a href="{{ far_end.parent.get_absolute_url }}">
|
||||||
|
{{ far_end.parent.provider }}
|
||||||
|
{{ far_end.parent }}
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{{ far_end.parent.get_absolute_url }}">
|
||||||
|
{{ far_end.parent }}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td>{{ far_end }}</td>
|
<td>{{ far_end }}</td>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user