From 4c34526a571ce593449a25848e960bc35444c8d6 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 26 May 2017 16:49:44 -0400 Subject: [PATCH] added footer to share email --- app/assets/javascripts/recordings.coffee | 2 +- app/controllers/bbb_controller.rb | 2 +- config/locales/en-us.yml | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/recordings.coffee b/app/assets/javascripts/recordings.coffee index c082b2ba..1eae12f5 100644 --- a/app/assets/javascripts/recordings.coffee +++ b/app/assets/javascripts/recordings.coffee @@ -339,7 +339,7 @@ class @Recordings recording_url = row.playbacks[0].url webcams_url = getHostName(recording_url) + '/presentation/' + id + '/video/webcams.webm' subject = username + I18n.recording_mail_subject - body = I18n.recording_mail_body + "\n\n" + recording_url + body = I18n.recording_mail_body + "\n\n" + recording_url + "\n\n" + I18n.email_footer_1 + "\n" + I18n.email_footer_2 mailto = "mailto:?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body); window.open(mailto); diff --git a/app/controllers/bbb_controller.rb b/app/controllers/bbb_controller.rb index 69421fcf..e7a84564 100644 --- a/app/controllers/bbb_controller.rb +++ b/app/controllers/bbb_controller.rb @@ -178,7 +178,7 @@ class BbbController < ApplicationController client = Yt::Account.new(access_token: current_user.token) video = client.upload_video(get_webcams_url(params[:record_id]), title: params[:video_title], - description: t('youtube_description'), + description: t('youtube_description', url: 'https://bigbluebutton.org/'), privacy_status: params[:privacy_status]) rescue # In this case, they don't have a youtube channel connected to their account, so prompt to create one. diff --git a/config/locales/en-us.yml b/config/locales/en-us.yml index f1fb81ed..58d60fd3 100644 --- a/config/locales/en-us.yml +++ b/config/locales/en-us.yml @@ -47,6 +47,8 @@ en-US: are_you_sure: Are you sure? change_visibility: Change visibility delete_recording: Delete + email_footer_1: This e-mail is auto-generated by your friendly neighbourhood BigBlueButton server. Do no reply to this e-mail. + email_footer_2: BigBlueButton is an open source web conferencing system. For more information on BigBlueButton and it's amazing capabilities, see https://bigbluebutton.org/ . enter_name: Enter a name to join mail_recording: Mail meeting_ended: Meeting was ended @@ -171,7 +173,7 @@ en-US: wait_for_mod_explanation: You will automatically join when the meeting starts watch: Watch 'yes': 'Yes' - youtube_description: This recording was recorded with BigBlueButton. For more information check out https://bigbluebutton.org/ + youtube_description: This recording was recorded with BigBlueButton. For more information check out %{url}. youtube_privacy_options: public: Public private: Private