Extracted css and js include header

pull/6827/head
Sebastian Schuster 12 years ago
parent 61a8c39ea5
commit 9af4633dad
  1. 7
      app/views/cost_reports/_reporting_header.html.erb
  2. 8
      app/views/cost_reports/index.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 %>

@ -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? %>

Loading…
Cancel
Save