This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/controllers/desktop_controller.rb

36 lines
703 B
Ruby

class DesktopController< ApplicationController
layout 'desktop'
before_filter :authenticate_user!
def index
@desktop = current_user.desktop
end
def desktop
render :layout => false
end
def app_manager
render :layout => false
end
def sections
render :layout => false
end
def save_desktop_settings
@desktop = Desktop.find(params["id"])
@desktop.update_attributes(:theme => params["theme"])
a = Array.new
a << {"success"=>"true"}
render :json=>a.to_json
end
def get_desktop_settings
@desktop = Desktop.find(params["id"])
render :json => @desktop.to_json
end
def settings
render :layout => false
end
end