2009-06-01 06:20:15 +00:00
|
|
|
<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) %> |
|
|
|
|
<%= link_to 'Edit', edit_admin_announcement_path(announcement) %> |
|
|
|
|
<%= link_to 'Destroy', admin_announcement_path(announcement), :confirm => 'Are you sure?', :method => :delete %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2010-01-11 09:09:50 +00:00
|
|
|
<%= link_to 'New announcement', new_admin_announcement_path( :entry_name => params[:entry_name] ) %>
|