Sha256: e79dd8c6d6a4f79534d0e4bd01445a04876df96d122639317be15e485d5bae8d
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
%a#back-to-all{:href => rails_email_preview.root_url} « Back to list :ruby raw_url = rails_email_preview.email_url(params.merge(:part_type => 'raw')) html_url = if @mail.multipart? || @mail.content_type =~ %r(text/html) rails_email_preview.email_url(params.merge(:part_type => 'text/html')) end plain_url = if @mail.multipart? || @mail.content_type =~ %r(text/plain) rails_email_preview.email_url(params.merge(:part_type => 'text/plain')) end #message_headers %p.alternate - if @part_type != 'raw' %a{:href => raw_url} View Original Message (raw) %br - if @part_type != 'text/html' && html_url %a{:href => html_url} View HTML version %br - if @part_type != 'text/plain' && plain_url %a{:href => plain_url} View plain text version %dl %dt From: %dd= @mail.from %dt Subject: %dd %strong= @mail.subject %dt Date: %dd= Time.now.strftime("%b %e, %Y %I:%M:%S %p %Z") %dt To: %dd= @mail.to %iframe#src-iframe{:src => rails_email_preview.raw_email_url(params.slice(:mail_class, :mail_action, :part_type)), :width => "100%", :height => "800", :onload => 'emailLoaded()', :style => "display:none"} %pre#loading Loading... :javascript window.emailLoaded = function () { document.getElementById('src-iframe').style.display = 'block'; document.getElementById('loading').style.display = 'none'; };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_email_preview-0.0.4 | app/views/rails_email_preview/emails/show.html.haml |
rails_email_preview-0.0.3 | app/views/rails_email_preview/emails/show.html.haml |