<%= @page_title %>
<% if @preview.emails.any? %>
<% @preview.emails.each do |email| %>
- <%= link_to email, url_for(controller: "rails/mailers", action: "preview", path: "#{@preview.preview_name}/#{email}") %>
<% end %>
<% else %>
You have not defined any actions for <%= @preview %>.
Read <%= link_to "Action Mailer Basics", "https://guides.rubyonrails.org/action_mailer_basics.html#previewing-emails" %> to learn how to define your first.
<% end %>