Orbit/app/views/admin/items/_snippets.html.erb

15 lines
399 B
Plaintext
Raw Normal View History

<h1>Listing snippets</h1>
<table>
<tr>
</tr>
<% snippets.each do |snippet| %>
<tr>
<td><%= snippet.name %></td>
<td><%= link_to t(:show), admin_snippet_path(snippet) %>
<td><%= link_to t(:edit), edit_admin_snippet_path(snippet) %></td>
<td><%= link_to t(:delete), admin_snippet_path(snippet), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>