Oh no! Looks like something went wrong on our end.
+The error has been logged, we'll take a look!
+ + Go back + +diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 0c7451b0..3ab92069 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -56,12 +56,24 @@ a { flex-direction: column; } -.room-section { +.table-responsive { + overflow: visible; +} + +.landing-section { position: relative; height: 45%; background-color: $background-color; } +.room-section { + background-color: $background-color; +} + +.danger-section { + background-color: #efe6e6; +} + .start-block { background-color: white; border: 3px solid lightblue; diff --git a/app/controllers/rooms_controller.rb b/app/controllers/rooms_controller.rb index 10769815..e6dcadc3 100644 --- a/app/controllers/rooms_controller.rb +++ b/app/controllers/rooms_controller.rb @@ -90,6 +90,13 @@ class RoomsController < ApplicationController redirect_to @room end + # PATCH /r/:room_uid/:record_id + def update_recording + bbb.publish_recordings(params[:record_id], params[:publish]) + + + end + # DELETE /r/:room_uid/:record_id def delete_recording @room.delete_recording(params[:record_id]) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index a3c17818..aa6f6523 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -5,6 +5,9 @@ class UsersController < ApplicationController # POST /users def create + # Verify that GreenLight is configured to allow user signup. + return unless Rails.configuration.allow_user_signup + @user = User.new(user_params) @user.provider = "greenlight" @@ -17,8 +20,12 @@ class UsersController < ApplicationController end # GET /signup - def new - @user = User.new + def new + if Rails.configuration.allow_user_signup + @user = User.new + else + redirect_to root_path + end end # GET /users/:user_uid/edit diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 26747c06..09c9f44e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -12,4 +12,13 @@ module ApplicationHelper def omniauth_login_url(provider) "/auth/#{provider}" end + + # Determine if Greenlight is configured to allow user signups. + def allow_user_signup? + Rails.configuration.allow_user_signup + end + + def bigbluebutton_endpoint_default? + Rails.configuration.bigbluebutton_endpoint_default == Rails.configuration.bigbluebutton_endpoint + end end diff --git a/app/views/errors/internal_error.html.erb b/app/views/errors/internal_error.html.erb index 01489b7a..cf0411aa 100644 --- a/app/views/errors/internal_error.html.erb +++ b/app/views/errors/internal_error.html.erb @@ -1,7 +1,12 @@ -
The error has been logged, we'll take a look!
+ + Go back + +This deployment is using a pre-configured testing server, + you should replace this with your own. + For details, see the <%= link_to "documentation", "http://docs.bigbluebutton.org/install/green-light.html#installing-greenlight", target: "_blank" %>.
+