<%= mail_template_list_title(params[:type]) %>

<%= show_no_record(@mail_templates) do %> <% @mail_templates.each do |mail_template| %> <% end %>
Template Info Variations All
<% if params[:type] != 'partial' %> <% end %>
Name<%= mail_template.name %>
Path<%= mail_template.path %>
Subject<%= mail_template.subject %>
Layout<%= mail_template.layout %>
Partials<%= mail_template.partials.map(&:name).join(" , ") %>
<% mail_template.variations(params[:type] == 'partial').group_by(&:locale).each do |locale, templates| %> "> <% templates.each do |template| %> <% if template.persisted? %> <% else %> <% end %> <% end %> <% end %>
<%= locale.humanize %>
<%= template.locale %>.<%= template.format %> <%= link_to image_tag('mail_engine/icons/show.png', :alt => "Show"), mail_template_path(template) %> <%= link_to image_tag('mail_engine/icons/edit.gif', :alt => "Edit"), edit_mail_template_path(template) %> <%= link_to image_tag('mail_engine/icons/delete.png', :alt => "Delete"), mail_template_path(template, :type => params[:type]), :confirm => 'Are you sure?', :method => :delete %> <%= link_to image_tag('mail_engine/icons/copy.png', :alt => "Copy"), duplicate_mail_template_path(template, :type => params[:type]), :class => "fancybox iframe" %>
<%= image_tag('mail_engine/icons/missing.png', :alt => "Missing", :class=>"left", :style => "margin-bottom: 0px") %> Missing: <%= template.locale %>.<%= template.format %>
<%= paginate @mail_templates %>
<% end %>
Create new mail By: <%= link_to 'Input html or text', new_mail_template_path(:type => params[:type]) %> or <%= link_to "Uploading zip file", new_by_upload_mail_templates_path(:type => params[:type]) %>