mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-25 10:18:56 +02:00
#10460: Fix PowerFeed details
This commit is contained in:
@@ -41,8 +41,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Connected Device</th>
|
<th scope="row">Connected Device</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.connected_endpoint %}
|
{% if object.connected_endpoints %}
|
||||||
{{ object.connected_endpoint.device|linkify }} ({{ object.connected_endpoint }})
|
{{ object.connected_endpoints.0.device|linkify }} ({{ object.connected_endpoints.0|linkify:"name" }})
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ ''|placeholder }}
|
{{ ''|placeholder }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Utilization (Allocated)</th>
|
<th scope="row">Utilization (Allocated)</th>
|
||||||
{% with utilization=object.connected_endpoint.get_power_draw %}
|
{% with utilization=object.connected_endpoints.0.get_power_draw %}
|
||||||
{% if utilization %}
|
{% if utilization %}
|
||||||
<td>
|
<td>
|
||||||
{{ utilization.allocated }}VA / {{ object.available_power }}VA
|
{{ utilization.allocated }}VA / {{ object.available_power }}VA
|
||||||
|
|||||||
Reference in New Issue
Block a user