about summary refs log tree commit diff
path: root/app/views/layouts/mailer.html.haml
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-01-15 22:17:48 -0600
committerDavid Yip <yipdw@member.fsf.org>2018-01-15 22:17:48 -0600
commit89a9d629f776a3a115c1e89ee4c13e8cbe7ae684 (patch)
treec5da0f86e23fbd544dea6bcef124c41803c841ef /app/views/layouts/mailer.html.haml
parent0c7dc6c78123728a9a0a32e16c2ad524e76926c8 (diff)
parent5276c0a0900a0886b59a8ead2346540aa381ea46 (diff)
Merge remote-tracking branch 'origin/master' into gs-master
 Conflicts:
	Gemfile.lock
Diffstat (limited to 'app/views/layouts/mailer.html.haml')
-rw-r--r--app/views/layouts/mailer.html.haml55
1 files changed, 55 insertions, 0 deletions
diff --git a/app/views/layouts/mailer.html.haml b/app/views/layouts/mailer.html.haml
new file mode 100644
index 000000000..8a7ce4369
--- /dev/null
+++ b/app/views/layouts/mailer.html.haml
@@ -0,0 +1,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 '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 asset_pack_path('logo_full.svg'), 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
+                      != "&nbsp; "
+                  %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 asset_pack_path('logo_transparent.svg'), height: 24