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