mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fix null cable termination representation
This commit is contained in:
parent
12476036cd
commit
2583abc39d
@ -1,5 +1,6 @@
|
||||
{% load helpers %}
|
||||
<table class="table table-hover panel-body attr-table">
|
||||
{% if terminations.0 %}
|
||||
<table class="table table-hover panel-body attr-table">
|
||||
{% if terminations.0.device %}
|
||||
{# Device component #}
|
||||
<tr>
|
||||
@ -40,7 +41,7 @@
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
{% elif terminations.0.circuit %}
|
||||
{# Circuit termination #}
|
||||
<tr>
|
||||
<td>Provider</td>
|
||||
@ -55,4 +56,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
</table>
|
||||
{% else %}
|
||||
<span class="text-muted">No termination</span>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user