Don't ask for a name in the landing page, redir to the room/meeting

Instead of asking the user for a name in the landing page, it just
redirects to the room/meeting page, where the user is asked to enter a
name. If the user is signed in, no redirect is necessary and the user's
name is used automatically.
This commit is contained in:
Leonardo Crauss Daronco
2017-01-11 14:55:39 -02:00
parent b82f693bff
commit b8c4ffe80b
4 changed files with 56 additions and 25 deletions

View File

@ -43,6 +43,11 @@ module ApplicationHelper
end
end
# Whether the current page is the page of a room/meeting or not
def on_room_or_meeting_page?
params[:id].present?
end
def version
Greenlight::VERSION
rescue