Sha256: 0a1d099715494ade8bb772ed475985ee2768b8f480b81020afdd5a70214f24ac

Contents?: true

Size: 1.33 KB

Versions: 19

Compression:

Stored size: 1.33 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.own')) -%></h1>
<div id="content_list">

<table class="table table-striped index">
  <tr>
    <th><%= t('activerecord.models.patron') -%></th>
    <th><%= t('activerecord.models.item') -%></th>
    <th><%= t('activerecord.models.manifestation') -%></th>
    <th></th>
  </tr>

<%- @owns.each do |own| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td><%= link_to own.patron.full_name, own.patron -%></td>
    <td>
      <%- if own.item.item_identifier.blank? -%>
        (<%= link_to 'no number', own.item -%>)
      <%- else -%>
        <%= link_to own.item.item_identifier, own.item -%>
      <%- end -%>
    </td>
    <td>
      <%= render 'manifestations/show_index', :manifestation => own.item.manifestation -%>
    </td>
    <td>
      <%- if can? :delete, own -%>
        <%= link_to t('page.show'), own -%>
        <%= link_to t('page.destroy'), own, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

<%= paginate(@owns) -%>
</div>
</div>

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre42 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre41 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre40 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre39 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre38 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre37 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre36 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre35 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre34 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre33 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre32 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre31 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre30 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre29 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre28 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre27 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre26 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre25 app/views/owns/index.html.erb
enju_biblio-0.1.0.pre24 app/views/owns/index.html.erb