<%= mail_template.name %> |
<%= mail_template.path %> |
<% if params[:type] != 'partial' %>
<%= mail_template.subject %> |
<%= mail_template.layout %> |
<%= mail_template.partials.map(&:name).join(" , ") %> |
<% end %>
<% mail_template.variations.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 %>
|
<%#= link_to image_tag('mail_engine/icons/add.png', :alt => "Add"), new_mail_template_path(:type => params[:type]) %>
<% end %>
<% end %>
<% end %>
|
<% end %>