<% if (!window.beaker_current_user) { %>
You are not logged in.
<% } else if (!can_power) { %>
You do not have permission to control this system.
<% } else if (!lab_controller_id) { %>
System is not attached to a lab controller.
<% } else if (!has_power) { %>
System is not configured for power support.
<% } %>