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

Clean up connection tables

This commit is contained in:
jeremystretch
2022-07-14 10:37:27 -04:00
parent 0615252e15
commit 29c81a788f
3 changed files with 15 additions and 29 deletions

View File

@@ -10,10 +10,12 @@
<div class="col col-md-5">
{% if path %}
<div class="text-center my-3">
<object data="{{ svg_url }}" class="rack_elevation"></object>
<object data="{{ svg_url }}" class="rack_elevation"></object>
<div>
<a class="btn btn-outline-primary btn-sm my-3" href="{{ svg_url }}">
<i class="mdi mdi-file-download"></i> Download SVG
</a>
</div>
</div>
<div class="trace-end">
{% with traced_path=path.origin.trace %}
@@ -80,18 +82,16 @@
{% for cablepath in related_paths %}
<tr{% if cablepath.pk == path.pk %} class="info"{% endif %}>
<td>
<a href="?cablepath_id={{ cablepath.pk }}">
{{ cablepath.origin.parent_object }} / {{ cablepath.origin }}
</a>
<a href="?cablepath_id={{ cablepath.pk }}">{{ cablepath.origins|join:", " }}</a>
</td>
<td>
{% if cablepath.destination %}
{{ cablepath.destination }} ({{ cablepath.destination.parent_object }})
{% if cablepath.destinations %}
{{ cablepath.destinations|join:", " }}
{% else %}
<span class="text-muted">Incomplete</span>
{% endif %}
</td>
<td class="text-end">
<td>
{{ cablepath.segment_count }}
</td>
</tr>