<%= email.date.strftime("%Y-%m-%d %H:%M") %> |
<%= email.subject %> |
<% email.organisations.each do |organisation| %>
<%= organisation %>
<% end if email.organisations %>
<% email.servers.each do |server| %>
<%= server %>
<% end if email.servers %>
<% if email.cron? %>
cron
<% end %>
<% if email.mailing_list? %>
list
<% end %>
<% if email.junk? %>
junk
<% end %>
|
<%= link_to 'Show', email, "data-turbo-frame": "_top" %> |
<%= link_to 'Edit', edit_email_path(email), "data-turbo-frame": "_top" %> |
<%= link_to 'Destroy', email, method: :delete, data: { confirm: 'Are you sure?' }, "data-turbo-frame": "_top" %> |