add preferences and customization (#171)

This commit is contained in:
Joshua Arts
2017-05-11 09:58:51 -04:00
committed by Jesus Federico
parent 45c55efd04
commit 24c8952e59
14 changed files with 160 additions and 10 deletions

View File

@@ -55,6 +55,19 @@ class LandingController < ApplicationController
end
helper_method :admin?
def preferences
@user = current_user
end
def landing_background
if !current_user || !current_user.background? then
(ENV['LANDING_BACKGROUND'].present?) ? ENV['LANDING_BACKGROUND'] : 'greenlight_background.png'
else
current_user.background.url
end
end
helper_method :landing_background
private
def render_meeting