Fix null cable termination representation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% load helpers %}
|
||||
{% if terminations.0 %}
|
||||
<table class="table table-hover panel-body attr-table">
|
||||
{% if terminations.0.device %}
|
||||
{# Device component #}
|
||||
@@ -40,7 +41,7 @@
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
{% elif terminations.0.circuit %}
|
||||
{# Circuit termination #}
|
||||
<tr>
|
||||
<td>Provider</td>
|
||||
@@ -56,3 +57,6 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
{% else %}
|
||||
<span class="text-muted">No termination</span>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user