Created
August 22, 2015 01:50
-
-
Save poc7667/fa3c4174c7e49c82de90 to your computer and use it in GitHub Desktop.
error mail preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html{:xmlns => "http://www.w3.org/1999/xhtml"} | |
%head | |
%meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"}/ | |
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/ | |
%meta{:content => "width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1", :name => "viewport"}/ | |
%title *|MC:SUBJECT|* | |
:css | |
.ReadMsgBody{ | |
width:100%; | |
background-color:#ffffff; | |
} | |
.ExternalClass{ | |
width:100%; | |
background-color:#ffffff; | |
} | |
.ExternalClass,.ExternalClass p,.ExternalClass span,.ExternalClass font,.ExternalClass td,.ExternalClass div{ | |
line-height:100%; | |
} | |
html{ | |
width:100%; | |
} | |
body{ | |
-webkit-text-size-adjust:none; | |
-ms-text-size-adjust:none; | |
margin:0; | |
padding:0; | |
} | |
table{ | |
border-spacing:0; | |
border-collapse:collapse; | |
table-layout:fixed; | |
margin:0 auto; | |
} | |
table table table{ | |
table-layout:auto; | |
} | |
img{ | |
display:block !important; | |
} | |
table td{ | |
border-collapse:collapse; | |
} | |
.yshortcuts a{ | |
border-bottom:none !important; | |
} | |
a{ | |
color:#ff646a; | |
text-decoration:none; | |
} | |
.textbutton a{ | |
font-family:'open sans', arial, sans-serif !important; | |
color:#ffffff !important; | |
} | |
.footer-link a{ | |
color:#7f8c8d !important; | |
} | |
%body | |
/ header | |
%table{:align => "center", :bgcolor => "#f8f8f8", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"} | |
%tr{:align => "center", :valign => "top"} | |
%td | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "600"} | |
%tr | |
%td{:align => "center", :bgcolor => "#ffffff", :valign => "top", :width => "208"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "158"} | |
%tr | |
%td{:height => "50"} | |
/ logo | |
%tr | |
%td{:align => "center", :style => "line-height:0px;"} | |
%img{:alt => "", :border => "0", :height => "80", "mc:edit" => "logo", :src => "https://gallery.mailchimp.com/bb0be7e1d3b4360337526ca33/images/76b913f5-e189-4c1b-96dd-222214298495.png", :style => "height: 80px; width: 80px; margin: 0; padding: 0;", :width => "80"}/ | |
/ end logo | |
%tr | |
%td{:height => "40"} | |
/ Compane Name | |
%tr | |
%td{"mc:edit" => "sender company name", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:16px; color:#FFFFFF; line-height:26px; font-weight: bold;"} | |
%div{:style => "text-align: center;"} | |
%span{:style => "font-size:20px"} | |
%span{:style => "color:#000000"} | |
= t('site_name') | |
/ end Compane Name | |
%tr | |
%td{:height => "5"} | |
/ address | |
%tr | |
%td{"mc:edit" => "sender address", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:13px; color:#FFFFFF; line-height:26px;"} | |
/ end address | |
%tr | |
%td{:height => "25"} | |
%td{:align => "center", :valign => "top", :width => "392"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "342"} | |
%tr | |
%td{:height => "50"} | |
/ title | |
%tr | |
%td{:align => "right", "mc:edit" => "invoice title", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:24px; color:#3b3b3b; line-height:26px;"} 票價更新 | |
/ end title | |
%tr | |
%td{:height => "25"} | |
%tr | |
%td{:align => "right"} | |
%table{:align => "right", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "50"} | |
%tr | |
%td{:bgcolor => "#ff646a", :height => "3", :style => "line-height:0px; font-size:0px;"} | |
%tr | |
%td{:height => "15"} | |
/ Compane Name | |
%tr | |
%td{:align => "right", "mc:edit" => "customer name", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:16px; color:#3b3b3b; line-height:26px; font-weight: bold;"}= Date.today.to_s | |
/ end Compane Name | |
%tr | |
%td{:height => "5"} | |
/ address | |
%tr | |
%td{:align => "right", "mc:edit" => "customer address", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:13px; color:#7f8c8d; line-height:26px;"} | |
/ end address | |
%tr | |
%td{:height => "25"} | |
/ end header | |
- @queues.each do |queue| | |
- plan = Plan.find(queue[:plan]) | |
/ title | |
%table{:align => "center", :bgcolor => "#FFFFFF", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"} | |
%tr | |
%td{:align => "center"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "600"} | |
%tr | |
%td{:align => "center", :style => "border-bottom:3px solid #bcbcbc;"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "550"} | |
%tr | |
%td{:height => "50"} | |
/ header | |
%tr | |
%td | |
%table{:border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"} | |
%tr | |
%td{:align => "left", "mc:edit" => "header description", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:13px; color:#3b3b3b; line-height:26px; text-transform:uppercase;", :valign => "top", :width => "300"} | |
= i18n_city_name find_city_name_by_airport_name(plan.from) | |
#{t('bound_for')} | |
= i18n_city_name find_city_name_by_airport_name(plan.to) | |
= plan.start_date.strftime("%Y-%m-%d") + "~" + plan.end_date.strftime("%Y-%m-%d") | |
/ end header | |
%tr | |
%td{:height => "10"} | |
/ end title | |
/ list | |
- queue[:notifications].each do |raw_flight| | |
- tik = OpenStruct.new(raw_flight) | |
- flight = Flight.find(raw_flight["flight_id"]) | |
%table{:align => "center", :bgcolor => "#FFFFFF", :border => "0", :cellpadding => "0", :cellspacing => "0", "mc:repeatable" => "", "mc:variant" => "List", :width => "100%"} | |
%tr | |
%td{:align => "center"} | |
%table{:border => "0", :cellpadding => "0", :cellspacing => "0", :width => "600"} | |
%tr | |
%td{:align => "center", :style => "border-bottom:1px solid #ecf0f1;"} | |
%table{:border => "0", :cellpadding => "0", :cellspacing => "0", :width => "550"} | |
%tr | |
%td{:height => "15"} | |
%tr | |
%td | |
%table{:border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"} | |
%tr | |
%td{:align => "left", "mc:edit" => "list title", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:14px; color:#3b3b3b; line-height:26px; font-weight: bold;", :valign => "top", :width => "80"} | |
= t(tik.airline.upcase, scope: 'airlines') | |
%td{:align => "center", "mc:edit" => "list amont", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:14px; color:#3b3b3b; line-height:26px; font-weight: bold;", :valign => "top", :width => "20"} | |
= flight.price_with_currency(nil).format | |
%tr | |
%td{:height => "5"} | |
%tr | |
%td{:height => "5"} | |
%tr | |
%td{:align => "center"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "550"} | |
%tr | |
%td{"mc:edit" => "list detail", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:12px; color:#7f8c8d; line-height:26px;"} | |
= tik.departure_at.strftime("%Y-%m-%d(%a) %H:%M") | |
= link_to prices_single_day_trend_url(from: tik.from, to:tik.to, flight_id: tik.flight_id, start_date: tik.departure_at.to_date.to_s), style: "color: #ff646a;text-decoration: none;" do | |
= t('email.check_it_now') | |
/ end list | |
/ total | |
/ end total | |
/ note | |
/ end note | |
/ footer | |
%table{:align => "center", :bgcolor => "#FFFFFF", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"} | |
%tr | |
%td{:align => "center"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"} | |
%tr | |
%td{:align => "center", :height => "15", :style => "border-bottom:10px solid #ecf0f1;", :valign => "top"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "600"} | |
%tr | |
%td{:height => "25"} | |
%tr | |
%td{:align => "center", :valign => "top"} | |
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"} | |
%tr | |
%td{:width => "10"} | |
%td{:width => "20"} | |
%td{:align => "center", :style => "line-height:0px;", :width => "11"} | |
%img{:alt => "img", :height => "11", "mc:edit" => "icon2", :src => "https://gallery.mailchimp.com/bb0be7e1d3b4360337526ca33/images/d0e76840-0adc-40b7-8ae8-4843c52d699f.png", :style => "display:block;font-size:0px; border:0px; line-height:0px;", :width => "14"}/ | |
%td{:width => "10"} | |
%td.footer-link{:align => "left", "mc:edit" => "email", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:13px; color:#3b3b3b; line-height:26px;", :width => "120"} service@lazyair.co | |
%td.footer-link{:align => "right", :style => "font-family: 'Open Sans', Arial, sans-serif; font-size:13px; color:#3b3b3b; line-height:26px;", :width => "300"} | |
%a{:href => "*|ARCHIVE|*"} webversion | |
%span | | |
%a{:href => "*|UNSUB|*"} unsubscribe | |
%tr | |
%td{:height => "25"} | |
/ end footer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment