10236 fix device detail for power-feed

This commit is contained in:
Arthur 2022-11-17 11:47:34 -08:00
parent eb591731ef
commit 13d7720fd7

View File

@ -247,10 +247,15 @@
<td style="padding-left: 20px">Leg {{ leg.name }}</td> <td style="padding-left: 20px">Leg {{ leg.name }}</td>
<td>{{ leg.outlet_count }}</td> <td>{{ leg.outlet_count }}</td>
<td>{{ leg.allocated }}</td> <td>{{ leg.allocated }}</td>
<td>{{ powerfeed.available_power|divide:3 }}VA</td> {% if powerfeed.available_power %}
{% with phase_available=powerfeed.available_power|divide:3 %} <td>{{ powerfeed.available_power|divide:3 }}VA</td>
<td>{% utilization_graph leg.allocated|percentage:phase_available %}</td> {% with phase_available=powerfeed.available_power|divide:3 %}
{% endwith %} <td>{% utilization_graph leg.allocated|percentage:phase_available %}</td>
{% endwith %}
{% else %}
<td class="text-muted">&mdash;</td>
<td class="text-muted">&mdash;</td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}