Added valid until text to invite email (#2599)

This commit is contained in:
Ahmad Farhat
2021-03-22 19:26:51 -04:00
committed by GitHub
parent c21dd8f39a
commit 79beb7f3fa
7 changed files with 17 additions and 9 deletions

View File

@ -3,8 +3,7 @@
class UserMailerPreview < ActionMailer::Preview
def initialize(_params)
super
@logo = "https://raw.githubusercontent.com/bigbluebutton/greenlight/master/app/assets/images/logo_with_text.png"
@color = "#467fcf"
@settings = Setting.find_by(provider: "greenlight")
end
# Preview this email at
@ -27,7 +26,7 @@ class UserMailerPreview < ActionMailer::Preview
# Preview this email at
# http://localhost:3000/rails/mailers/user_mailer/invite_email
def invite_email
UserMailer.invite_email("Example User", "from@example.com", "http://example.com/signup", @logo, @color)
UserMailer.invite_email("Example User", "from@example.com", DateTime.now, "http://example.com/signup", @settings)
end
# Preview this email at