orbit-basic/app/views/panel/announcements/index.html.erb

21 lines
593 B
Plaintext
Raw Normal View History

<h1>Listing announcements</h1>
<table>
<tr>
<th>Title</th>
<th>Actions</th>
</tr>
<% @announcements.each do |announcement| %>
<tr>
<td><%=h announcement.title %></td>
<td><%= link_to 'Show', announcement_path(announcement) %> |
2010-01-11 09:53:44 +00:00
<%= link_to 'Edit', edit_panel_announcement_path(announcement) %> |
<%= link_to 'Destroy', panel_announcement_path(announcement), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
2010-01-11 09:53:44 +00:00
<%= link_to 'New announcement', new_panel_announcement_path( :entry_name => params[:entry_name] ) %>