forked from External/greenlight
add end button to views
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
class LandingController < ApplicationController
|
||||
include BbbApi
|
||||
|
||||
def index
|
||||
if params[:resource] == 'meetings'
|
||||
@ -29,11 +30,15 @@ class LandingController < ApplicationController
|
||||
|
||||
def render_room
|
||||
params[:action] = 'rooms'
|
||||
|
||||
@user = User.find_by(username: params[:id])
|
||||
if @user.nil?
|
||||
redirect_to root_path
|
||||
return
|
||||
end
|
||||
|
||||
@meeting_running = bbb_get_meeting_info(@user.username)[:returncode]
|
||||
|
||||
render :action => 'rooms'
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user