about summary refs log tree commit diff
path: root/app/views/layouts/mailer.html.haml
blob: 85029ec768499412fd898976cf01eeb1d0ea473f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
!!!
%html{ lang: I18n.locale }
  %head
    %meta{ 'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=utf-8' }/
    %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, shrink-to-fit=no' }

    %title/

    = stylesheet_pack_tag 'core/mailer'
  %body
    %table.email-table{ cellspacing: 0, cellpadding: 0 }
      %tbody
        %tr
          %td.email-body.email-start
            .email-container
              %table.content-section{ cellspacing: 0, cellpadding: 0 }
                %tbody
                  %tr
                    %td.content-cell.header
                      .email-row
                        .col-6
                          %table.column{ cellspacing: 0, cellpadding: 0 }
                            %tbody
                              %tr
                                %td.column-cell
                                  = link_to root_url do
                                    = image_tag full_pack_url('logo_full.svg'), alt: 'Mastodon', height: 34, class: 'logo'

    = yield

    %table.email-table{ cellspacing: 0, cellpadding: 0 }
      %tbody
        %tr
          %td.email-body.email-end
            .email-container
              %table.content-section{ cellspacing: 0, cellpadding: 0 }
                %tbody
                  %tr
                    %td.content-cell.content-end
                      != "  "
                  %tr
                    %td.blank-cell.footer
                      .email-row
                        .col-4
                          %table.column{ cellspacing: 0, cellpadding: 0 }
                            %tbody
                              %td.column-cell
                                %p= t 'about.hosted_on', domain: site_hostname
                                %p= link_to t('application_mailer.notification_preferences'), settings_notifications_url
                        .col-2
                          %table.column{ cellspacing: 0, cellpadding: 0 }
                            %tbody
                              %td.column-cell.text-right
                                = link_to root_url do
                                  = image_tag full_pack_url('logo_transparent.svg'), alt: 'Mastodon', height: 24