dashboard.create_global_dashboard=Create global dashboard
dashboard.edit_dashboard=Edit dashboard
dashboard.update_dashboard=Update dashboard
+dashboard.not_found=This dashboard was not found
dashboard.error_create_existing_name=A dashboard already exists with the same name
dashboard.error_follow_existing_name=A dashboard already exists with the same name
dashboard.default_restored=Default dashboards are restored
before_filter :login_required, :except => [:index]
def index
- # TODO display error page if no dashboard or no resource
load_resource()
if !@resource || @resource.display_dashboard?
end
def configure
- # TODO display error page if no dashboard or no resource
load_resource()
load_dashboard()
+
@category=params[:category]
load_widget_definitions(@category)
- unless @dashboard
- redirect_to home_path
- end
end
def set_layout
@dashboard=(active ? active.dashboard : nil)
end
+ not_found('dashboard') unless @dashboard
+
@dashboard_configuration=Api::DashboardConfiguration.new(@dashboard, :period_index => params[:period], :snapshot => @snapshot) if @dashboard && @snapshot
end