Sha256: 00ba46a8796dd29d76058afbed3aa5d0483799ff3f908a238cb5446795d35420

Contents?: true

Size: 1.48 KB

Versions: 19

Compression:

Stored size: 1.48 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 can? :update, frequency -%>
        <%= move_position(frequency) -%>
      <%- end -%>
    </td>
    <td><%= frequency.name -%></td>
    <td>
      <%= link_to frequency.display_name.localize, frequency -%>
      <br />
      <%= frequency.note %>
    </td>
    <td>
      <%- if can? :update, frequency -%>
        <%= link_to t('page.edit'), edit_frequency_path(frequency) -%>
      <% end %>
      <%- if can? :delete, frequency -%>
        <%= 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 can? :create, Frequency -%>
      <li><%= link_to t('page.new', model: t('activerecord.models.frequency')), new_frequency_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
enju_biblio-0.1.3 app/views/frequencies/index.html.erb
enju_biblio-0.1.2 app/views/frequencies/index.html.erb
enju_biblio-0.1.1 app/views/frequencies/index.html.erb
enju_biblio-0.1.0 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre71 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre70 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre69 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre68 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre67 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre66 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre65 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre64 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre63 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre62 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre61 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre60 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre59 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre58 app/views/frequencies/index.html.erb
enju_biblio-0.1.0.pre57 app/views/frequencies/index.html.erb