Sha256: ef15c0bf75b8c19fee74ffa0038c99100f412bc4a7fa4432ef0a064679871e14

Contents?: true

Size: 1.55 KB

Versions: 40

Compression:

Stored size: 1.55 KB

Contents

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

<table class="table table-striped index">
  <tr>
    <th id="position"></th>
    <th><%= t('activerecord.attributes.bookstore.name') -%></th>
    <th><%= t('activerecord.attributes.bookstore.telephone_number') -%></th>
    <th><%= t('activerecord.attributes.bookstore.fax_number') -%></th>
    <th></th>
  </tr>

<%- @bookstores.each_with_index do |bookstore, i| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if policy(bookstore).update? -%>
        <%= move_position(bookstore) -%>
      <%- end -%>
    </td>
    <td>
      <%= link_to bookstore.name, bookstore -%><br />
      <%= link_to bookstore.url, bookstore.url if bookstore.url? -%>
    </td>
    <td><%= bookstore.telephone_number -%></td>
    <td><%= bookstore.fax_number -%></td>
    <td>
      <%- if policy(bookstore).update? -%>
        <%= link_to t('page.edit'), edit_bookstore_path(bookstore) -%>
      <% end %>
      <%- if policy(bookstore).destroy? -%>
        <%= link_to t('page.destroy'), bookstore, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

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

<div id="submenu" class="ui-corner-all ui-widget-content">
  <%- if policy(Bookstore).create? -%>
    <ul>
      <li><%= link_to t('page.new', model: t('activerecord.models.bookstore')), new_bookstore_path -%></li>
    </ul>
  <%- end -%>
</div>

Version data entries

40 entries across 38 versions & 2 rubygems

Version Path
enju_library-0.3.11 app/views/bookstores/index.html.erb
enju_library-0.3.10 app/views/bookstores/index.html.erb
enju_library-0.3.9 app/views/bookstores/index.html.erb
enju_library-0.3.8 app/views/bookstores/index.html.erb
enju_library-0.3.8.rc.2 app/views/bookstores/index.html.erb
enju_library-0.3.8.rc.1 app/views/bookstores/index.html.erb
enju_library-0.4.0.rc.1 app/views/bookstores/index.html.erb
enju_library-0.3.7 app/views/bookstores/index.html.erb
enju_library-0.3.6 app/views/bookstores/index.html.erb
enju_library-0.4.0.beta.4 app/views/bookstores/index.html.erb
enju_library-0.4.0.beta.3 app/views/bookstores/index.html.erb
enju_library-0.4.0.beta.2 app/views/bookstores/index.html.erb
enju_library-0.4.0.beta.1 app/views/bookstores/index.html.erb
enju_library-0.3.5 app/views/bookstores/index.html.erb
enju_library-0.3.4 app/views/bookstores/index.html.erb
enju_library-0.3.3 app/views/bookstores/index.html.erb
enju_library-0.3.2 app/views/bookstores/index.html.erb
enju_library-0.3.1 app/views/bookstores/index.html.erb
enju_library-0.3.0 app/views/bookstores/index.html.erb
enju_library-0.3.0.rc.1 app/views/bookstores/index.html.erb