<%= mail_template_list_title(params[:type]) %>
<%= show_no_record(@mail_templates) do %>
Template Info |
Variations
All
|
<% @mail_templates.each do |mail_template| %>
Name | <%= mail_template.name %> |
Path | <%= mail_template.path %> |
<% if params[:type] != 'partial' %>
Subject | <%= mail_template.subject %> |
Layout | <%= mail_template.layout %> |
Partials | <%= mail_template.partials.map(&:name).join(" , ") %> |
<% end %>
|
<% mail_template.variations(params[:type] == 'partial').group_by(&:locale).each do |locale, templates| %>
">
<%= locale.humanize %> |
<% templates.each do |template| %>
<% if template.persisted? %>
<%= 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" %>
|
<% else %>
<%= image_tag('mail_engine/icons/missing.png', :alt => "Missing", :class=>"left", :style => "margin-bottom: 0px") %>
Missing: <%= template.locale %>.<%= template.format %>
|
<% end %>
<% end %>
<% end %>
|
<% end %>
<%= 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]) %>