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.
2009-05-07 17:18:16 +00:00
|
|
|
<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' %>
|