<% content_for :secondary do %>
  <ul class="list">
    <li><%= link_to t(:new_layout, :scope => :admin), new_admin_layout_path, :class => 'button positive' %></li>
  </ul>
<% end -%>

<%= flash_messages %>

<h1><%= t('admin.list_layouts') %></h1>

<table>
  <tr>
    <th><%= t('admin.name') %></th>
    <th><%= t('admin.description') %></th>
    <th><%= t('admin.action') %></th>
  </tr>

<% @layouts.each do |layout| %>
  <tr>
    <td><%= layout.name %></td>
    <td><%= layout.description %></td>
    <td>
      <%= link_to t(:edit), edit_admin_layout_path(layout) %> |
      <%= link_to t(:delete), admin_layout_path(layout), :confirm => t('sure?'), :method => :delete %>
    </td>
  </tr>
<% end %>
</table>
