<% @emails.each do |email| %> <% end %>
Date Subject Metadata
<%= email.date %> <%= email.subject %> <% email.organisations.each do |organisation| %> <% end if email.organisations %> <% email.servers.each do |server| %> <% end if email.servers %> <% if email.cron? %> <% end %> <% if email.mailing_list? %> <% end %> <% if email.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" %>
<%= paginate @emails %>