1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #9758: Display parent object of connected termination

This commit is contained in:
jeremystretch
2022-08-17 10:39:30 -04:00
parent a8576e54c7
commit e523006ec3
2 changed files with 5 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
LINKTERMINATION = """
{% for termination in value %}
{% if termination.parent_object %}
<a href="{{ termination.parent_object.get_absolute_url }}">{{ termination.parent_object }}</a>
<i class="mdi mdi-chevron-right"></i>
{% endif %}
<a href="{{ termination.get_absolute_url }}">{{ termination }}</a>{% if not forloop.last %},{% endif %}
{% empty %}
{{ ''|placeholder }}