let controller choose what partial is used for the report table

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1460 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
rkh 14 years ago
parent 5aa6855c9a
commit 718cf57cec
  1. 1
      app/controllers/cost_reports_controller.rb
  2. 2
      app/views/cost_reports/index.rhtml

@ -7,6 +7,7 @@ class CostReportsController < ApplicationController
def index
CostQuery::QueryUtils.cache.clear
@table_partial = "cost_report_table"
render :layout => !request.xhr?
end

@ -46,4 +46,4 @@
</div>
<% end %>
<%= render :partial => "cost_report_table", :locals => {:query => @query, :walker => @query.walker} %>
<%= render :partial => @table_partial, :locals => {:query => @query, :walker => @query.walker} %>

Loading…
Cancel
Save