Fix display of circuit termination provider network

This commit is contained in:
jeremystretch 2021-07-29 11:14:12 -04:00
parent c323105696
commit 22d160b1da

View File

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