Sha256: 9350bf65f73e2309e756e37125c04b52a3b66dc1564aee639a2438ac0bc8f15c

Contents?: true

Size: 1.35 KB

Versions: 74

Compression:

Stored size: 1.35 KB

Contents

<table class="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>

<%- if @checkouts -%>
  <%- @checkouts.each_with_index do |checkout, i| %>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <% if checkout.user %>
        <%= link_to checkout.user_username, checkout.user %>
        <br />
        (<%= link_to checkout.user_user_number, checkout.user %>)
      <% end %>
    </td>
    <td>
      <%= render 'manifestations/show_index', :manifestation => checkout.item.manifestation -%>
      (<%= link_to checkout.item.item_identifier, checkout.item -%>)
    </td>
    <td>
      <%= l(checkout.due_date, :format => :only_date) -%>
      <br />
      <% if checkout.checkin %>
        <strong><%= t('checkout.returned') %></strong>
      <% end %>
    </td>
    <td>
      <%- if can? :update, checkout -%>
        <% unless checkout.checkin %>
          <%= link_to t('checkout.extend'), edit_checkout_path(checkout) -%>
        <% end %>
      <%- end -%>
      <%- if can? :destroy, checkout -%>
        <%= link_to t('page.destroy'), checkout, :confirm => t('page.are_you_sure'), :method => :delete -%>
      <%- end -%>
    </td>
  </tr>
  <%- end -%>
<%- end -%>
</table>

<%= will_paginate(@checkouts) %>

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
enju_message-0.1.9 app/views/checkouts/_list.html.erb
enju_message-0.0.24 app/views/checkouts/_list.html.erb
enju_circulation-0.0.57 app/views/checkouts/_list.html.erb
enju_circulation-0.0.56 app/views/checkouts/_list.html.erb
enju_circulation-0.0.55 app/views/checkouts/_list.html.erb
enju_circulation-0.0.54 app/views/checkouts/_list.html.erb
enju_circulation-0.0.53 app/views/checkouts/_list.html.erb
enju_circulation-0.0.52 app/views/checkouts/_list.html.erb
enju_circulation-0.0.51 app/views/checkouts/_list.html.erb
enju_circulation-0.0.50 app/views/checkouts/_list.html.erb
enju_circulation-0.0.49 app/views/checkouts/_list.html.erb
enju_circulation-0.0.48 app/views/checkouts/_list.html.erb
enju_circulation-0.0.47 app/views/checkouts/_list.html.erb
enju_message-0.0.23 app/views/checkouts/_list.html.erb
enju_message-0.1.7 app/views/checkouts/_list.html.erb
enju_circulation-0.0.46 app/views/checkouts/_list.html.erb
enju_message-0.0.22 app/views/checkouts/_list.html.erb
enju_message-0.1.6 app/views/checkouts/_list.html.erb
enju_message-0.0.21 app/views/checkouts/_list.html.erb
enju_message-0.1.5 app/views/checkouts/_list.html.erb