1
0
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:
Jeremy Stretch
2020-10-01 14:16:43 -04:00
parent cd398b15d8
commit 610420c020
13 changed files with 66 additions and 97 deletions

View File

@@ -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">

View File

@@ -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">

View File

@@ -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 %}

View File

@@ -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 #}

View File

@@ -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 %}

View File

@@ -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">