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-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) %> |
|
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>
|
2009-06-01 06:20:15 +00:00
|
|
|
</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] ) %>
|