HTML e-mails for UserMailer (#6256)
- premailer gem to turn CSS into inline styles automatically - rework UserMailer templates - reword UserMailer templates
This commit is contained in:
		
							
								
								
									
										60
									
								
								app/views/user_mailer/reset_password_instructions.html.haml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								app/views/user_mailer/reset_password_instructions.html.haml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
			
		||||
%table.email-table{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
  %tbody
 | 
			
		||||
    %tr
 | 
			
		||||
      %td.email-body
 | 
			
		||||
        .email-container
 | 
			
		||||
          %table.content-section{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
            %tbody
 | 
			
		||||
              %tr
 | 
			
		||||
                %td.content-cell.hero
 | 
			
		||||
                  .email-row
 | 
			
		||||
                    .col-6
 | 
			
		||||
                      %table.column{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
                        %tbody
 | 
			
		||||
                          %tr
 | 
			
		||||
                            %td.column-cell.text-center.padded
 | 
			
		||||
                              %table.hero-icon{ align: 'center', cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
                                %tbody
 | 
			
		||||
                                  %tr
 | 
			
		||||
                                    %td
 | 
			
		||||
                                      = image_tag asset_pack_path('icon_lock_open.svg')
 | 
			
		||||
 | 
			
		||||
                              %h1= t 'devise.mailer.reset_password_instructions.title'
 | 
			
		||||
                              %p.lead= t 'devise.mailer.reset_password_instructions.explanation'
 | 
			
		||||
 | 
			
		||||
%table.email-table{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
  %tbody
 | 
			
		||||
    %tr
 | 
			
		||||
      %td.email-body
 | 
			
		||||
        .email-container
 | 
			
		||||
          %table.content-section{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
            %tbody
 | 
			
		||||
              %tr
 | 
			
		||||
                %td.content-cell.content-start
 | 
			
		||||
                  %table.column{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
                    %tbody
 | 
			
		||||
                      %tr
 | 
			
		||||
                        %td.column-cell.button-cell
 | 
			
		||||
                          %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
                            %tbody
 | 
			
		||||
                              %tr
 | 
			
		||||
                                %td.button-primary
 | 
			
		||||
                                  = link_to edit_password_url(@resource, reset_password_token: @token) do
 | 
			
		||||
                                    %span= t 'devise.mailer.reset_password_instructions.action'
 | 
			
		||||
 | 
			
		||||
%table.email-table{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
  %tbody
 | 
			
		||||
    %tr
 | 
			
		||||
      %td.email-body
 | 
			
		||||
        .email-container
 | 
			
		||||
          %table.content-section{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
            %tbody
 | 
			
		||||
              %tr
 | 
			
		||||
                %td.content-cell
 | 
			
		||||
                  .email-row
 | 
			
		||||
                    .col-6
 | 
			
		||||
                      %table.column{ cellspacing: 0, cellpadding: 0 }
 | 
			
		||||
                        %tbody
 | 
			
		||||
                          %tr
 | 
			
		||||
                            %td.column-cell.text-center.padded
 | 
			
		||||
                              %p= t 'devise.mailer.reset_password_instructions.extra'
 | 
			
		||||
		Reference in New Issue
	
	Block a user