Only show login/signup in slim mode when used from oauth

This commit is contained in:
Tom Hughes 2011-04-03 11:16:57 +01:00
parent 98f34e4534
commit 097fb390b8

View file

@ -503,7 +503,7 @@ private
def choose_layout
if [ 'api_details' ].include? action_name
nil
elsif [ 'login', 'new', 'terms'].include? action_name
elsif params[:referer] == url_for(:controller => :oauth, :action => :oauthorize, :only_path => true)
'slim'
else
'site'