Sha256: 0343bb86dfeea7ee68fcb317592ea2f5f9ea88d2077f34a10ff130b894f2fdfa

Contents?: true

Size: 1.99 KB

Versions: 4

Compression:

Stored size: 1.99 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.inter_library_loan')) -%></h1>
<div id="content_list">
<table class="index">
  <tr>
    <th><%= t('activerecord.models.item') -%></th>
    <th><%= t('activerecord.models.library') -%></th>
    <th><%= t('inter_library_loan.borrowing_library') -%></th>
    <th>
      <%= t('activerecord.attributes.inter_library_loan.shipped_at') -%> / 
      <%= t('activerecord.attributes.inter_library_loan.received_at') -%>
    </th>
    <th></th>
  </tr>

<%- @inter_library_loans.each do |inter_library_loan| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%= link_to inter_library_loan.item.item_identifier, inter_library_loan.item -%>
      <br />
      (<%= link_to inter_library_loan.item.manifestation.original_title, inter_library_loan.item.manifestation -%>)
    </td>
    <td><%= link_to inter_library_loan.item.shelf.library.display_name.localize, inter_library_loan.item.shelf.library -%></td>
    <td><%= link_to inter_library_loan.borrowing_library.display_name.localize, inter_library_loan.borrowing_library -%></td>
    <td>
      <%= l(inter_library_loan.shipped_at) if inter_library_loan.shipped_at -%><br />
      <%= l(inter_library_loan.received_at) if inter_library_loan.received_at -%>
    </td>
    <%- if can? :destroy, inter_library_loan -%>
      <td>
        <%= link_to t('page.show'), inter_library_loan -%>
        <%= link_to t('page.edit'), edit_inter_library_loan_path(inter_library_loan) -%>
        <%= link_to t('page.destroy'), inter_library_loan, :confirm => t('page.are_you_sure'), :method => :delete -%>
      </td>
    <%- end -%>
  </tr>
<%- end -%>
</table>

<%= will_paginate(@inter_library_loans) -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <%- if can? :create, InterLibraryLoan -%>
      <li><%= link_to t('page.new', :model => t('activerecord.models.inter_library_loan')), new_inter_library_loan_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_inter_library_loan-0.0.4 app/views/inter_library_loans/index.html.erb
enju_inter_library_loan-0.0.3 app/views/inter_library_loans/index.html.erb
enju_inter_library_loan-0.0.2 app/views/inter_library_loans/index.html.erb
enju_inter_library_loan-0.0.1 app/views/inter_library_loans/index.html.erb