forked from External/greenlight
GRN2-140: Added Email to inform user they've been promoted (#534)
* Added Email to inform user they've been promoted * Update user_mailer.rb * Send email when a user is demoted * Change more-info string
This commit is contained in:
committed by
Jesus Federico
parent
9638ebcbc5
commit
83a9edf81d
@ -35,6 +35,22 @@ class UserMailer < ApplicationMailer
|
||||
mail to: user.email, subject: t('reset_password.subtitle')
|
||||
end
|
||||
|
||||
def user_promoted(user, url, image, color)
|
||||
@url = url
|
||||
@admin_url = url + "admins"
|
||||
@image = image
|
||||
@color = color
|
||||
mail to: user.email, subject: t('mailer.user.promoted.subtitle')
|
||||
end
|
||||
|
||||
def user_demoted(user, url, image, color)
|
||||
@url = url
|
||||
@root_url = url
|
||||
@image = image
|
||||
@color = color
|
||||
mail to: user.email, subject: t('mailer.user.demoted.subtitle')
|
||||
end
|
||||
|
||||
def invite_email(name, email, url, image, color)
|
||||
@name = name
|
||||
@email = email
|
||||
|
Reference in New Issue
Block a user