diff --git a/app/views/cost_reports/_reporting_header.html.erb b/app/views/cost_reports/_reporting_header.html.erb new file mode 100644 index 0000000000..d3b0388a6a --- /dev/null +++ b/app/views/cost_reports/_reporting_header.html.erb @@ -0,0 +1,7 @@ +<% content_for :header_tags do %> + <%= javascript_include_tag "reporting_engine/reporting" %> + <%= javascript_include_tag "reporting_engine/sortable" %> + <%= javascript_include_tag("reporting_engine/reporting/lang/reporting-#{current_language.to_s.downcase}.js") %> + <%= stylesheet_link_tag 'reporting_engine/reporting' %> + <%= stylesheet_link_tag 'reporting_engine/help' %> +<% end %> \ No newline at end of file diff --git a/app/views/cost_reports/index.html.erb b/app/views/cost_reports/index.html.erb index 5b40fe915c..ae98e44e95 100644 --- a/app/views/cost_reports/index.html.erb +++ b/app/views/cost_reports/index.html.erb @@ -1,10 +1,4 @@ -<% content_for :header_tags do %> - <%= javascript_include_tag "reporting", :plugin => "reporting_engine" %> - <%= javascript_include_tag "sortable", :plugin => "reporting_engine" %> - <%= javascript_include_tag("reporting/lang/reporting-#{current_language.to_s.downcase}.js", :plugin => "reporting_engine") %> - <%= stylesheet_link_tag 'reporting', :plugin => 'reporting_engine' %> - <%= stylesheet_link_tag 'help', :plugin => 'reporting_engine' %> -<% end %> +<%= render :partial => 'reporting_header' %> <%= include_calendar_headers_tags %> <% if @custom_errors.present? %>