Sha256: 1b8ea83312869e7a85b8b4dd44f63a8c85fb698183f8b2c49b00227799e9f147

Contents?: true

Size: 1015 Bytes

Versions: 12

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

12 entries across 12 versions & 1 rubygems

Version Path
guts-1.3.6 app/views/guts/categories/index.html.erb
guts-1.3.5 app/views/guts/categories/index.html.erb
guts-1.3.4 app/views/guts/categories/index.html.erb
guts-1.3.3 app/views/guts/categories/index.html.erb
guts-1.3.2 app/views/guts/categories/index.html.erb
guts-1.3.1 app/views/guts/categories/index.html.erb
guts-1.3.0 app/views/guts/categories/index.html.erb
guts-1.2.2 app/views/guts/categories/index.html.erb
guts-1.2.1 app/views/guts/categories/index.html.erb
guts-1.2.0 app/views/guts/categories/index.html.erb
guts-1.1.1 app/views/guts/categories/index.html.erb
guts-1.1.0 app/views/guts/categories/index.html.erb