Commit b0e0bfc8 authored by Alexis Reigel's avatar Alexis Reigel

use common layout for devise mailer

parent 2fbe116c
...@@ -2,7 +2,9 @@ class DeviseMailer < Devise::Mailer ...@@ -2,7 +2,9 @@ class DeviseMailer < Devise::Mailer
default from: "#{Gitlab.config.gitlab.email_display_name} <#{Gitlab.config.gitlab.email_from}>" default from: "#{Gitlab.config.gitlab.email_display_name} <#{Gitlab.config.gitlab.email_from}>"
default reply_to: Gitlab.config.gitlab.email_reply_to default reply_to: Gitlab.config.gitlab.email_reply_to
layout 'devise_mailer' layout 'mailer'
helper EmailsHelper
protected protected
......
.center = render layout: 'layouts/mailer/default_content' do
#content Hello, #{@resource.name}!
%h2 Hello, #{@resource.name}!
%p %p
The password for your GitLab account on The password for your GitLab account on
#{link_to(Gitlab.config.gitlab.url, Gitlab.config.gitlab.url)} #{link_to(Gitlab.config.gitlab.url, Gitlab.config.gitlab.url)}
......
.center = render layout: 'layouts/mailer/default_content' do
#content Hello, #{@resource.name}!
%h2 Hello, #{@resource.name}!
%p %p
Someone, hopefully you, has requested to reset the password for your Someone, hopefully you, has requested to reset the password for your
GitLab account on #{link_to(Gitlab.config.gitlab.url, Gitlab.config.gitlab.url)}. GitLab account on #{link_to(Gitlab.config.gitlab.url, Gitlab.config.gitlab.url)}.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment