Sha256: 2a3b22941290edbd7d7540d753a9485329e4f4f5668d32639d360108986535b2
Contents?: true
Size: 1.66 KB
Versions: 16
Compression:
Stored size: 1.66 KB
Contents
<table class="table table-striped index"> <tr> <th><%= t('activerecord.models.user') %></th> <th class="checked_item_title"><%= t('page.title') %></th> <th><%= t('activerecord.attributes.checkout.due_date') %></th> <th></th> </tr> <%- checkouts.each_with_index do |checkout, i| %> <tr class="line<%= cycle("0", "1") -%>"> <td> <% if checkout.user %> <%= link_to checkout.user_username, checkout.user.profile %> <br /> (<%= link_to checkout.user.profile.user_number, checkout.user.profile %>) <% end %> </td> <td> <% if checkout.item %> <%= render 'manifestations/show_index', manifestation: checkout.item.manifestation -%> (<%= link_to checkout.item.item_identifier, checkout.item -%>) <% end %> <% if checkout.shelf %> <%= t('activerecord.models.shelf') %>: <%= link_to checkout.shelf.display_name.localize, checkout.shelf %> (<%= link_to checkout.shelf.library.display_name.localize, checkout.shelf.library %>) <% end %> </td> <td> <%= l(checkout.due_date, format: :only_date) -%> <br /> <% if checkout.checkin %> <strong><%= t('checkout.returned') %></strong> <% end %> </td> <td> <%- if policy(checkout).update? -%> <% unless checkout.checkin %> <%= link_to t('checkout.extend'), edit_checkout_path(checkout) -%> <% end %> <%- end -%> <%- if policy(checkout).destroy? -%> <%= link_to t('page.destroy'), checkout, data: {confirm: t('page.are_you_sure')}, method: :delete -%> <%- end -%> </td> </tr> <%- end -%> </table> <%= paginate(checkouts) %>
Version data entries
16 entries across 16 versions & 1 rubygems