Merge pull request #111 from zach-chai/update_mod_message

add invite link to moderator message
This commit is contained in:
Zachary Chai 2017-02-03 16:01:26 -05:00 committed by GitHub
commit aa5d216312
2 changed files with 14 additions and 5 deletions

View File

@ -49,6 +49,13 @@ module BbbApi
options[:meeting_name] ||= meeting_token
options[:room_owner] ||= nil
if options[:room_owner]
meeting_url = "#{request.base_url}/rooms/#{options[:room_owner]}/#{options[:meeting_name]}"
else
meeting_url = "#{request.base_url}/meetings/#{meeting_token}"
end
options[:moderator_message] ||= t('moderator_default_message', url: "<a href=\"#{meeting_url}\" target=\"_blank\"><u>#{meeting_url}</u></a>")
if !bbb
return call_invalid_res
else
@ -75,6 +82,7 @@ module BbbApi
logoutURL: logout_url,
moderatorPW: moderator_password,
attendeePW: viewer_password,
moderatorOnlyMessage: options[:moderator_message],
"meta_#{BbbApi::META_LISTED}": false,
"meta_#{BbbApi::META_TOKEN}": meeting_token
}

View File

@ -74,16 +74,16 @@ en-US:
invite: Invite
invite_description: (share this link below to invite others to this meeting)
join: Join
logged_in_description_html: You are logged in as %{link}
login: login
login_description: Want to record a meeting?
logout: logout
landing_titles:
start_meeting: Start your own meeting
get_work_down: Let's get some work done
connect: Connect in real-time with others
collaborate: Collaborate with friends
teach: Teach students online
logged_in_description_html: You are logged in as %{link}
login: login
login_description: Want to record a meeting?
logout: logout
meeting: Meeting
meeting_invite:
explanation: Send an email with an invitation to this meeting
@ -93,6 +93,7 @@ en-US:
signed_in:
body: "You have been invited by %{user} to a meeting.\n\nPlease open the following page in your web browser: &&URL&&"
subject: "%{user} invited you to a meeting"
moderator_default_message: Invitation link - %{url}
my_room: my room
no: No
notification_mailer:
@ -104,7 +105,7 @@ en-US:
past_recordings: Past Recordings
presentation: Presentation
previous_meetings: (previous meetings)
return_to_room: Return to your personal room
return_to_room: Return to main page
session_url_explanation: The meeting will be taking place using the following URL
signin_text: Log in with %{provider}
start: Start