<tr id="<%= dom_id(reservation) %>">
  <td><%= reservation.item.name %></td>
  <td><%= reservation.item.description %></td>
  <td><%= reservation.count %></td>
  <td><%= number_with_precision reservation.item.price, precision: 2 %></td>
  <td><%= number_with_precision reservation.item.price*reservation.count, precision: 2 %></td>
  <td><%= reservation.picked_up_count %></td>
  <td><%= reservation.brought_back_count %></td>
  <td>
    <%= raw(status reservation.status) %>
    <% if reservation.status.disapproved? %>
      <span class="glyphicon glyphicon-question-sign reservation-disapprove-tooltip" data-toggle="tooltip" data-placement="top" title="<%= reservation.disapproval_message %>"></span>
    <% end %>
  </td>
  <td>
    <div class="nowrap">
      <%= render "reservations/actions", reservation: reservation %>
    </div>
  </td>
</tr>

<tr class="<%= if can? :manage, :all then (reservation.picked_up_count <= reservation.brought_back_count) ? 'success' : 'danger' end %>" id="<%= dom_id(reservation) %>">
  <td><%= reservation.item.name %></td>
  <td><%= reservation.item.description %></td>
  <td><%= reservation.count %></td>
  <td><%= number_with_precision reservation.item.price, precision: 2 %></td>
  <td><%= number_with_precision reservation.item.price*reservation.count, precision: 2 %></td>
  <td><%= reservation.picked_up_count %></td>
  <td><%= reservation.brought_back_count %></td>
  <td>
    <%= raw(status reservation.status) %>
    <% if reservation.status.disapproved? %>
      <span class="glyphicon glyphicon-question-sign reservation-disapprove-tooltip" data-toggle="tooltip" data-placement="top" title="<%= reservation.disapproval_message %>"></span>
    <% end %>
  </td>
  <td>
    <div class="nowrap">
      <%= render "reservations/actions", reservation: reservation %>
    </div>
  </td>
</tr>

Add table rows to partner overview
Add table rows to partner overview
