30 lines
536 B
Ruby
30 lines
536 B
Ruby
class DashboardController < ApplicationController
|
|
skip_before_filter :has_info
|
|
|
|
def home
|
|
@user = current_user
|
|
|
|
# See if the user has a font preference
|
|
if params[:font]
|
|
cookies[:font] = params[:font]
|
|
end
|
|
end
|
|
|
|
def change_graph
|
|
self.try(params[:graph])
|
|
end
|
|
|
|
def bar_graph
|
|
render :partial => "layouts/dashboard/bar_graph"
|
|
end
|
|
|
|
def pie_charts
|
|
@user = current_user
|
|
render :partial => "layouts/dashboard/dashboard_stats"
|
|
end
|
|
|
|
def doc
|
|
render "../../doc/" + params[:doc]
|
|
end
|
|
end
|