Sha256: 83b7b286d8f0741e96882fead8092442be9bc5031cde6f967f56e4eafef9a6a9

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

<h1>Listing Categories</h1>

<ul class="choices">
  <li><%= link_to 'New Category', new_admin_category_path %></li>
</ul>

<table>
  <thead>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <%= sortable_table_header :name => "Description",  :sort => "description" %>
      <th colspan="2">Actions</th>
    </tr>
  </thead>
  <tbody>
<% @categories.each do |category| %>
    <tr id="category-<%= category.id %>">
      <td><%= link_to category.title, admin_category_path(category) %></td>
      <td><%=h category.description %></td>
      <td><%= link_to 'Edit', admin_category_path(category), :class => 'edit' %></td>
      <td><%= link_to 'Destroy', admin_category_path(category), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
    </tr>
<% end %>
  </tbody>
  <tfoot>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <%= sortable_table_header :name => "Description",  :sort => "description" %>
    </tr>
  </tfoot>
</table>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
beef-articles-0.3.27 app/views/admin/categories/index.html.erb
beef-articles-0.3.28 app/views/admin/categories/index.html.erb
beef-articles-0.3.29 app/views/admin/categories/index.html.erb
beef-articles-0.3.30 app/views/admin/categories/index.html.erb