Owned by <%= owner.toHTML() %>.
<% if (!_.isEmpty(current_loan)) { %>Loaned to <%= current_loan.get('recipient_user').toHTML() %>. <% /* IMPLEMENTME add "since", needs proper loan records */ %>
<% } %><% if (current_reservation) { %> Reserved by <%= current_reservation.get('user').toHTML() %> <% if (current_reservation.get('type') == 'recipe') { %> for R:<%- current_reservation.get('recipe_id') %> <% } %> . <% } else { %> Idle since <% var idle_since = previous_reservation ? previous_reservation.get('finish_time') : created_date; %> . <% } %>
<% if (queue_size) { %><%- queue_size %> queued recipes could use this system.
<% } %><% if (can_return) { %> Return <% } else if (can_take && can_return_loan) { %> <% /* Normally we want to show only *one* quick action button here, to avoid bloating the "quick info" boxes. However this is a special case for the situation where a system is loaned to the current user. In that case there are two equally likely actions they might want to do: take the system (if they just got the loan), or return the loan (if they have already taken+returned the system and are now done with it). */ %>
<% } else if (can_take) { %> Take <% } else if (can_return_loan) { %> Return Loan <% } else if (can_borrow) { %> Borrow <% } else if (can_reserve) { %> Schedule Reservation <% } else if (_.isEmpty(window.beaker_current_user)) { %> <% } else { %> <% } %>