mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Drop support for split paths
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</td>
|
||||
|
||||
{# Connection #}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with paths=cp.paths.all %}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with path=cp.path %}
|
||||
|
||||
{# Actions #}
|
||||
<td class="text-right noprint">
|
||||
|
@@ -38,7 +38,7 @@
|
||||
</td>
|
||||
|
||||
{# Connection #}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with paths=csp.paths.all %}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with path=csp.path %}
|
||||
|
||||
{# Actions #}
|
||||
<td class="text-right noprint">
|
||||
|
@@ -1,7 +1,5 @@
|
||||
{% if paths|length > 1 %}
|
||||
<td colspan="2">Multiple connections</td>
|
||||
{% elif paths %}
|
||||
{% with endpoint=paths.0.destination %}
|
||||
{% if path %}
|
||||
{% with endpoint=path.destination %}
|
||||
<td><a href="{{ endpoint.parent.get_absolute_url }}">{{ endpoint.parent }}</a></td>
|
||||
<td><a href="{{ endpoint.get_absolute_url }}">{{ endpoint }}</a></td>
|
||||
{% endwith %}
|
||||
|
@@ -76,7 +76,7 @@
|
||||
{% elif iface.is_wireless %}
|
||||
<td colspan="2" class="text-muted">Wireless interface</td>
|
||||
{% else %}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with paths=iface.paths.all %}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with path=iface.path %}
|
||||
{% endif %}
|
||||
|
||||
{# Buttons #}
|
||||
|
@@ -49,7 +49,7 @@
|
||||
</td>
|
||||
|
||||
{# Connection #}
|
||||
{% with paths=po.paths.all %}
|
||||
{% with path=po.path %}
|
||||
{% include 'dcim/inc/endpoint_connection.html' %}
|
||||
<td>
|
||||
{% if paths|length == 1 %}
|
||||
|
@@ -45,7 +45,7 @@
|
||||
</td>
|
||||
|
||||
{# Connection #}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with paths=pp.paths.all %}
|
||||
{% include 'dcim/inc/endpoint_connection.html' with path=pp.path %}
|
||||
|
||||
{# Actions #}
|
||||
<td class="text-right noprint">
|
||||
|
Reference in New Issue
Block a user