17 lines
469 B
Ruby
17 lines
469 B
Ruby
# Copyright (c) 2010, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
|
|
class HomeController < ApplicationController
|
|
|
|
def show
|
|
if current_user
|
|
redirect_to :controller => 'aspects', :action => 'index', :a_ids => current_user.open_aspects
|
|
elsif is_mobile_device?
|
|
redirect_to user_session_path
|
|
else
|
|
@landing_page = true
|
|
render :show
|
|
end
|
|
end
|
|
end
|