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

21 lines
555 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_admin_announcement_path(announcement) %> |
<%= link_to 'Destroy', admin_announcement_path(announcement), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New announcement', new_admin_announcement_path %>