Fix display of circuit termination provider network

This commit is contained in:
jeremystretch 2021-07-29 11:14:12 -04:00
parent ef42839541
commit 3e342dbeb9

View File

@ -27,6 +27,7 @@
<div class="card-body">
{% if termination %}
<table class="table table-hover attr-table">
{% if termination.site %}
<tr>
<td>Site</td>
<td>
@ -53,7 +54,6 @@
</a>
{% endif %}
</div>
<a href="{{ termination.cable.get_absolute_url }}">{{ termination.cable }}</a>
{% with peer=termination.get_cable_peer %}
to
@ -64,8 +64,7 @@
{% endif %}
<a href="{{ peer.get_absolute_url }}">{{ peer }}</a>
{% endwith %}
{% else %}
{% if perms.dcim.add_cable %}
{% elif perms.dcim.add_cable %}
<div class="dropdown">
<button type="button" class="btn btn-success btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> Connect
@ -80,7 +79,7 @@
{% endif %}
</td>
</tr>
{% comment %} {% else %} {% endcomment %}
{% else %}
<tr>
<td>Provider Network</td>
<td>