2009-05-07 18:13:27 +00:00
|
|
|
<h1>Listing snippets</h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @snippets.each do |snippet| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= snippet.name %></td>
|
|
|
|
<td><%= link_to 'Edit', edit_admin_snippet_path(snippet) %></td>
|
|
|
|
<td><%= link_to 'Destroy', admin_snippet_path(snippet), :confirm => 'Are you sure?', :method => :delete %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2009-05-22 06:51:32 +00:00
|
|
|
<%= link_to 'New snippets', new_admin_snippet_path, :class => 'button positive' %>
|
|
|
|
<%= link_to 'New menu snippets', new_admin_snippet_path, :class => 'button positive' %>
|