mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 13:06:30 -06:00
Include draw numbers of connected power ports
This commit is contained in:
parent
8230ea1c83
commit
0ddd71fc36
@ -629,7 +629,7 @@
|
|||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Cable</th>
|
<th>Cable</th>
|
||||||
<th colspan="2">Connection</th>
|
<th colspan="3">Connection</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -30,14 +30,23 @@
|
|||||||
|
|
||||||
{# Connection #}
|
{# Connection #}
|
||||||
{% if po.connected_endpoint %}
|
{% if po.connected_endpoint %}
|
||||||
<td>
|
{% with pp=po.connected_endpoint %}
|
||||||
<a href="{% url 'dcim:device' pk=po.connected_endpoint.device.pk %}">{{ po.connected_endpoint.device }}</a>
|
<td>
|
||||||
</td>
|
<a href="{% url 'dcim:device' pk=pp.device.pk %}">{{ pp.device }}</a>
|
||||||
<td>
|
</td>
|
||||||
{{ po.connected_endpoint }}
|
<td>
|
||||||
</td>
|
{{ pp }}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% if pp.allocated_draw %}
|
||||||
|
{{ pp.allocated_draw }}W{% if pp.maximum_draw %} ({{ pp.maximum_draw }}W max){% endif %}
|
||||||
|
{% elif pp.maximum_draw %}
|
||||||
|
{{ pp.maximum_draw }}W
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
{% endwith %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<td colspan="2">
|
<td colspan="3">
|
||||||
<span class="text-muted">Not connected</span>
|
<span class="text-muted">Not connected</span>
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user