|
@@ -30,14 +30,23 @@
|
|
|
|
|
|
|
|
{# Connection #}
|
|
{# Connection #}
|
|
|
{% if po.connected_endpoint %}
|
|
{% if po.connected_endpoint %}
|
|
|
- <td>
|
|
|
|
|
- <a href="{% url 'dcim:device' pk=po.connected_endpoint.device.pk %}">{{ po.connected_endpoint.device }}</a>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- {{ po.connected_endpoint }}
|
|
|
|
|
- </td>
|
|
|
|
|
|
|
+ {% with pp=po.connected_endpoint %}
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <a href="{% url 'dcim:device' pk=pp.device.pk %}">{{ pp.device }}</a>
|
|
|
|
|
+ </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 %}
|