<% if (status == 'Removed') { %> Removed <% } else if (status == 'Broken') { %> Out of service since <% } else if (status == 'Automated' || status == 'Manual') { %> Operational since <% } else { %> <%- status %> since <% } %> .
<% if (status_reason) { %><%- status_reason %>
<% } %> <% if (recipes_run_past_week) { %><%- Math.round(recipes_aborted_past_week * 100. / recipes_run_past_week) %>% of recipes (<%- recipes_aborted_past_week %> out of <%- recipes_run_past_week %>) aborted in the past week.
<% } %><% if (can_change_status && (status == 'Broken' || status == 'Removed')) { %> Return to service <% } else if (can_change_status) { %> Remove from service <% } else if (_.isEmpty(window.beaker_current_user)) { %> <% } %> <% if (!_.isEmpty(window.beaker_current_user)) { %> <% } %>