add recording name to subject

This commit is contained in:
Zachary Chai 2017-03-21 18:46:36 -04:00
parent 3d216ba41f
commit aae1c2ff12
2 changed files with 5 additions and 2 deletions

View File

@ -21,9 +21,12 @@ class NotificationMailer < ActionMailer::Base
@user = user
@recording = rec
@room_url = meeting_room_url(resource: 'rooms', id: user.encrypted_id)
# Need this because URL doesn't respect the relative_url_root by default
unless @room_url.include? "#{Rails.configuration.relative_url_root}/"
@room_url = @room_url.split('/rooms/').join("#{Rails.configuration.relative_url_root}/rooms/")
end
mail(to: user.email, subject: t('.subject'))
mail(to: user.email, subject: t('.subject', recording: @recording[:name]))
end
end

View File

@ -119,7 +119,7 @@ en-US:
phrase3_html: "This recording is currently <b>unlisted</b>, which means only users with the above direct link can view the recording."
phrase4: "To make this recording public for everyone, visit"
phrase5: "and change its visibility from unlisted to public. After the recording is public, anyone with the above URL can view it."
subject: "Your recording is ready!"
subject: "Your recording is ready - %{recording}"
table:
ended: Ended
name: Name