Sha256: 303b9c220315e3c1bcdda227ad504f1eb3e10bf370e50063f5a1701e568b9381

Contents?: true

Size: 975 Bytes

Versions: 12

Compression:

Stored size: 975 Bytes

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>Content Types</h1>
    <%= link_to 'New', new_type_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 @types.size > 0 %>
      <table>
        <tbody>
          <% @types.each do |type| %>
            <tr>
              <td><%= type.title %></td>
              <td><%= pluralize type.contents.size, 'record', 'records' %></td>
              <td align="right" class="action_links">
                <%= link_to 'Edit', edit_type_path(type) %>
                <%= link_to_destroy 'Destroy', type %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
      <p>No content types 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/types/index.html.erb
guts-1.3.5 app/views/guts/types/index.html.erb
guts-1.3.4 app/views/guts/types/index.html.erb
guts-1.3.3 app/views/guts/types/index.html.erb
guts-1.3.2 app/views/guts/types/index.html.erb
guts-1.3.1 app/views/guts/types/index.html.erb
guts-1.3.0 app/views/guts/types/index.html.erb
guts-1.2.2 app/views/guts/types/index.html.erb
guts-1.2.1 app/views/guts/types/index.html.erb
guts-1.2.0 app/views/guts/types/index.html.erb
guts-1.1.1 app/views/guts/types/index.html.erb
guts-1.1.0 app/views/guts/types/index.html.erb