Sha256: 7fbc783d834ec801e9f207d5b738843867d45c8bff711b8d33390a001794a55b

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

<h1>Listing Categories</h1>

<ul class="choices">
  <li><%= link_to 'New Category', new_admin_category_path, :title => 'Create a new category' %></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 class="action"><%= link_to 'Edit', admin_category_path(category), :class => 'edit', :title => 'Edit this category' %></td>
      <td class="action"><%= link_to 'Delete', admin_category_path(category), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this category' %></td>
    </tr>
<% end %>
  </tbody>
  <tfoot>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <%= sortable_table_header :name => "Description",  :sort => "description" %>
      <th colspan="2">Actions</th>
    </tr>
  </tfoot>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
beef-articles-0.5.3 app/views/admin/categories/index.html.erb
beef-articles-0.5.2 app/views/admin/categories/index.html.erb
beef-articles-0.5.1 app/views/admin/categories/index.html.erb
beef-articles-0.4.18 app/views/admin/categories/index.html.erb
beef-articles-0.4.17 app/views/admin/categories/index.html.erb