Sha256: c54b7ed40b58f257a22cb7f4d87606279ca0c7d0c2e9d91c6fe23e6bdec9cbb9

Contents?: true

Size: 1.49 KB

Versions: 36

Compression:

Stored size: 1.49 KB

Contents

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

<table class="table table-striped index">
  <tr>
    <th id="position"></th>
    <th><%= t('activerecord.attributes.frequency.name') -%></th>
    <th>
      <%= t('activerecord.attributes.frequency.display_name') -%>
      /
      <%= t('activerecord.attributes.frequency.note') -%>
    </th>
    <th></th>
  </tr>

<%- @frequencies.each do |frequency| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if policy(frequency).update? -%>
        <%= move_position(frequency) -%>
      <%- end -%>
    </td>
    <td><%= frequency.name -%></td>
    <td>
      <%= link_to frequency.display_name.localize, frequency -%>
      <br />
      <%= frequency.note %>
    </td>
    <td>
      <%- if policy(frequency).update? -%>
        <%= link_to t('page.edit'), edit_frequency_path(frequency) -%>
      <% end %>
      <%- if policy(frequency).destroy? -%>
        <%= link_to t('page.destroy'), frequency_path(frequency), data: {confirm: t('page.are_you_sure')}, method: :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

</div>
</div>

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

Version data entries

36 entries across 35 versions & 2 rubygems

Version Path
enju_biblio-0.3.18 app/views/frequencies/index.html.erb
enju_biblio-0.3.17 app/views/frequencies/index.html.erb
enju_biblio-0.3.16 app/views/frequencies/index.html.erb
enju_biblio-0.3.15 app/views/frequencies/index.html.erb
enju_biblio-0.3.14 app/views/frequencies/index.html.erb
enju_biblio-0.3.13 app/views/frequencies/index.html.erb
enju_biblio-0.3.12 app/views/frequencies/index.html.erb
enju_biblio-0.3.11 app/views/frequencies/index.html.erb
enju_biblio-0.3.10 app/views/frequencies/index.html.erb
enju_biblio-0.3.10.rc.3 app/views/frequencies/index.html.erb
enju_biblio-0.3.10.rc.2 app/views/frequencies/index.html.erb
enju_biblio-0.3.10.rc.1 app/views/frequencies/index.html.erb
enju_biblio-0.3.9 app/views/frequencies/index.html.erb
enju_biblio-0.3.8 app/views/frequencies/index.html.erb
enju_biblio-0.3.7 app/views/frequencies/index.html.erb
enju_biblio-0.3.6 app/views/frequencies/index.html.erb
enju_biblio-0.3.5 app/views/frequencies/index.html.erb
enju_biblio-0.3.4 app/views/frequencies/index.html.erb
enju_biblio-0.3.3 app/views/frequencies/index.html.erb
enju_biblio-0.3.2 app/views/frequencies/index.html.erb