Sha256: 0d45a0f7aa436ce5181a64ba912e839ad7f043b2a172b4debdb2e1a1d3460e1d

Contents?: true

Size: 1.38 KB

Versions: 13

Compression:

Stored size: 1.38 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>

<%- 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, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
      <%- end -%>
    </td>
  </tr>
  <%- end -%>
<%- end -%>
</table>

<%= paginate(@checkouts) %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre14 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre13 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre12 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre11 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre10 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre9 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre8 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre7 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre6 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre5 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre4 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre3 app/views/checkouts/_list.html.erb
enju_circulation-0.1.0.pre2 app/views/checkouts/_list.html.erb