28 lines
563 B
Plaintext
28 lines
563 B
Plaintext
<p id="notice"><%= notice %></p>
|
|
|
|
<h1>Emails</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3"></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @emails.each do |email| %>
|
|
<tr>
|
|
<td><%= email.date %></td>
|
|
<td><%= email.subject %></td>
|
|
<td><%= link_to 'Show', email %></td>
|
|
<td><%= link_to 'Edit', edit_email_path(email) %></td>
|
|
<td><%= link_to 'Destroy', email, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<%= link_to 'New Email', new_email_path %>
|