!!! 5
%html.report
  %head
    %title= t("meta.title")
    %meta(content='text/html; charset=utf-8' http-equiv="Content-Type")
    %meta{:description => "#{ t('meta.description') }" }

    = stylesheet_link_tag 'report', media: 'all'
    = csrf_meta_tag

  %body.report
    = yield

    = javascript_include_tag 'application'
    = render 'layouts/etm/javascript_globals'
    = javascript_include_tag 'etm'

    = render 'output_elements/chart_template'

    :javascript
      I18n.defaultLocale = "#{ I18n.default_locale }";
      I18n.locale = "#{ I18n.locale }";

      jQuery(function () {
        window.App = App = new AppView();
        App.settings.set(globals.settings, { silent: true });
        App.bootstrap();
      });

    - if Rails.env.production?
      = render 'layouts/etm/ga' unless APP_CONFIG[:standalone]

!!! 5
%html.report
  %head
    %title= t("meta.title")
    %meta(content='text/html; charset=utf-8' http-equiv="Content-Type")
    %meta{:description => "#{ t('meta.description') }" }

    = stylesheet_link_tag 'report', media: 'all'
    = csrf_meta_tag

  %body.report
    = yield

    = javascript_include_tag 'application'
    = render 'layouts/etm/javascript_globals'
    = javascript_include_tag 'etm'
    = javascript_pack_tag 'app'

    = render 'output_elements/chart_template'

    :javascript
      I18n.defaultLocale = "#{ I18n.default_locale }";
      I18n.locale = "#{ I18n.locale }";

      jQuery(function () {
        window.App = App = new AppView();
        App.settings.set(globals.settings, { silent: true });
        App.bootstrap();
      });

    - if Rails.env.production?
      = render 'layouts/etm/ga' unless APP_CONFIG[:standalone]

Include "app" JS pack on report page
Include "app" JS pack on report page
