%html

%body
  #background
    %table.email-body-wrap{align: 'center'}
      %tr#header
        %td
          %img{:alt => "Apple", "aria-hidden" => "true", :src => "https://wwcci-email-assets.s3.amazonaws.com/bnb/images/apple.png"}/
          %h3 Channel Research
      %tr#body
        %td
          - unless options[:badge_left].blank?
            %img#badge_left{:alt => "Apple", "aria-hidden" => "true", :src => "https://wwcci-email-assets.s3.amazonaws.com/bnb/images/#{options[:badge_left]}", height: 75}/
          - unless options[:badge_right].blank?
            %img#badge_right{:alt => "Apple", "aria-hidden" => "true", :src => "https://wwcci-email-assets.s3.amazonaws.com/bnb/images/#{options[:badge_right]}", height: 75}/
          - if options[:title]
            %h1= options[:title]
          - if options[:subtitle]
            %h2= options[:subtitle]
          %div#content
      %tr#footer
        %td
          %p TM and copyright ©#{DateTime.now.year} Apple Inc. All rights reserved.
      %tr#signature_catcher
        %td
          %div{class: 'contenteditable'}
            -# There is something about this div that is required by apple email
            -# templates, otherwise your signature gets injected in a weird place
            -# so I'm just leaving it here, empty.
          %div{class: 'round_about_way_of_100_percent_width_that_helps_with_send_again'}
            = '. '*130