%= render :partial => 'query_date', :locals => {:graph_id => 2, :update_div => 'resource_usage_graph_app', :submit_action => 'resource_usage_graph_app'} %> <%app_id = @app_id || 0 %> <%=render :partial => 'javascript_partial', :locals => {:count => 'first', :start_hour => @start_hour, :end_hour => @end_hour, :app_id => app_id, :type => "app_cpu_usage_graph"}%> <%=render :partial => 'javascript_partial', :locals => {:count => 'second', :start_hour => @start_hour, :end_hour => @end_hour, :app_id => app_id, :type => "app_memory_usage_graph"}%>