This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/layouts/index.html.erb

29 lines
713 B
Plaintext
Raw Normal View History

<% 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>
2009-05-07 17:54:33 +00:00
<table>
<tr>
<th><%= t('admin.name') %></th>
<th><%= t('admin.description') %></th>
<th><%= t('admin.action') %></th>
2009-05-07 17:54:33 +00:00
</tr>
<% @layouts.each do |layout| %>
<tr>
<td><%= layout.name %></td>
2010-01-28 09:42:55 +00:00
<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>
2009-05-07 17:54:33 +00:00
</tr>
<% end %>
</table>