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.
orbit-4-1/app/views/panel/announcements/index.html.erb

21 lines
593 B
Plaintext

<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_panel_announcement_path(announcement) %> |
<%= link_to 'Destroy', panel_announcement_path(announcement), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New announcement', new_panel_announcement_path( :entry_name => params[:entry_name] ) %>