{% with netbox.get_powersupplies as psus %}
{% if psus|length %}
Power supplies
{% include "ipdevinfo/frag-psutable.html" %}
{% endif %}
{% endwith %}
{% with netbox.get_fans as psus %}
{% if psus|length %}
Fans
{% include "ipdevinfo/frag-psutable.html" %}
{% endif %}
{% endwith %}