forked from External/greenlight
add recording name to subject
This commit is contained in:
parent
3d216ba41f
commit
aae1c2ff12
|
@ -21,9 +21,12 @@ class NotificationMailer < ActionMailer::Base
|
||||||
@user = user
|
@user = user
|
||||||
@recording = rec
|
@recording = rec
|
||||||
@room_url = meeting_room_url(resource: 'rooms', id: user.encrypted_id)
|
@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}/"
|
unless @room_url.include? "#{Rails.configuration.relative_url_root}/"
|
||||||
@room_url = @room_url.split('/rooms/').join("#{Rails.configuration.relative_url_root}/rooms/")
|
@room_url = @room_url.split('/rooms/').join("#{Rails.configuration.relative_url_root}/rooms/")
|
||||||
end
|
end
|
||||||
mail(to: user.email, subject: t('.subject'))
|
|
||||||
|
mail(to: user.email, subject: t('.subject', recording: @recording[:name]))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -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."
|
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"
|
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."
|
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:
|
table:
|
||||||
ended: Ended
|
ended: Ended
|
||||||
name: Name
|
name: Name
|
||||||
|
|
Loading…
Reference in New Issue