Sha256: d3d09d451f41d0c1909c80e0f53ccd1c7c4ec146bd86db0ad4ef949a2c678360

Contents?: true

Size: 1.38 KB

Versions: 19

Compression:

Stored size: 1.38 KB

Contents

<table class="table table-striped index">
  <tr>
    <th><%= t('page.title') -%></th>
    <th><%= t('activerecord.models.item') -%></th>
    <th><%= t('activerecord.attributes.checkout.due_date') -%></th>
    <th><%= t('activerecord.models.user') -%></th>
  </tr>

<%- @checkins.each_with_index do |checkin, i| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%= render 'manifestations/show_index', :manifestation => checkin.item.manifestation -%>
    </td>
    <td>
      <%= link_to checkin.item.item_identifier, checkin.item -%>
      <br />
      (<%= link_to checkin.item.shelf.library.display_name.localize, checkin.item.shelf.library %>)
      <% if defined?(EnjuInterLibraryLoan) %>
        <br />
        <%- unless checkin.item.shelf.library == current_user.library -%>
          <span style="color: red"><%= link_to t('activerecord.models.inter_library_loan'), item_inter_library_loans_path(checkin.item) -%></span>
        <%- end -%>
      <% end %>
    </td>
    <td>
      <%- if checkin.checkout -%>
        <%= l(checkin.checkout.due_date, :format => :only_date) -%>
      <%- end -%>
    </td>
    <td>
      <% if checkin.checkout.try(:user) %>
        <%= link_to checkin.checkout.user.username, checkin.checkout.user -%>
      <% end %>
    </td>
  </tr>
<%- end -%>
</table>

<%= javascript_tag("$(function(){$('#checkin_item_identifier').focus().select()})") %>
</script>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre30 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre29 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre28 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre27 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre26 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre25 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre24 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre23 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre22 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre21 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre20 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre19 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre18 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre17 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre16 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre15 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre14 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre13 app/views/checkins/_checkin.html.erb
enju_circulation-0.1.0.pre12 app/views/checkins/_checkin.html.erb