orbit-basic/app/views/admin/pages/index.html.erb

18 lines
429 B
Plaintext
Raw Normal View History

<h1>Listing pages</h1>
<table>
<tr>
</tr>
<% @pages.each do |page| %>
<tr>
<td><%= link_to page.name, admin_page_path(page) %></td>
<td><%= link_to 'Edit', edit_admin_page_path(page) %></td>
<td><%= link_to 'Destroy', admin_page_path(page), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
2009-05-15 06:37:03 +00:00
<%= link_to 'New pages', new_admin_page_path, :class => 'button positive' %>