Sha256: 816144e195174ce8d8952a79f715ea2eed837876788751669295f414d876180e

Contents?: true

Size: 1015 Bytes

Versions: 4

Compression:

Stored size: 1015 Bytes

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>Categories</h1>
    <%= link_to "New", new_category_path, class: "button" %>
  </div>
</div>

<% if notice %>
  <div class="row">
    <div class="small-12 columns">
      <div class="callout success notice">
        <p><%= notice %></p>
      </div>
    </div>
  </div>
<% end %>

<div class="row">
  <div class="small-12 columns">
    <% if @categories.size > 0 %>
      <table>
        <tbody>
          <% @categories.each do |category| %>
            <tr>
              <td><%= category.title %></td>
              <td><%= pluralize category.categorizations.size, "record", "records" %></td>
              <td align="right" class="action_links">
                <%= link_to "Edit", edit_category_path(category) %>
                <%= link_to_destroy "Destroy", category %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
      <p>No categories have been added.</p>
    <% end %>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.0.8 app/views/guts/categories/index.html.erb
guts-1.0.7 app/views/guts/categories/index.html.erb
guts-1.0.5 app/views/guts/categories/index.html.erb
guts-1.0.3 app/views/guts/categories/index.html.erb