Sha256: eaab501038af72eba0456877d5aff7cde424a586206f35f9e743410db8795b9b

Contents?: true

Size: 1.25 KB

Versions: 7

Compression:

Stored size: 1.25 KB

Contents

%title= escape_once("#{Locomotive.config.name} — #{current_site.name}")

= csrf_meta_tag

- key = Rails.application.config.session_options[:key]

%meta{ :name => 'key-param', :content => Rails.application.config.session_options[:key] }
%meta{ :name => 'key-token', :content => cookies[key] }

%script{ :type => 'text/javascript' }
  :plain
    window.Locomotive = { mounted_on: '#{Locomotive.mounted_on}' };

= stylesheet_link_tag     'locomotive', :media => 'screen'
= javascript_include_tag  'locomotive'

%script{ :type => 'text/javascript' }
  :plain
    window.locale         = '#{I18n.locale}';
    window.content_locale = '#{::Mongoid::Fields::I18n.locale}';

    Locomotive.current_site     = new Locomotive.Models.Site(#{j current_site.to_presenter.as_json_for_html_view.to_json.html_safe});
    Locomotive.current_account  = new Locomotive.Models.Account(#{j current_locomotive_account.to_json.html_safe});

    $(document).ready(function() {

      window.application_view = new Locomotive.Views.ApplicationView({
        flash:      #{flash.to_json},
        view:       #{backbone_view_class_name},
        view_data:  { #{backbone_view_data} }
      });
      window.application_view.render();

    });

= yield :head

= render 'locomotive/shared/main_app_head'

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
tribeca_cms-0.1.1 app/views/locomotive/shared/_head.html.haml
tribeca_cms-2.0.0.rc12 app/views/locomotive/shared/_head.html.haml
locomotive_cms-2.0.0.rc12 app/views/locomotive/shared/_head.html.haml
locomotive_cms-2.0.0.rc11 app/views/locomotive/shared/_head.html.haml
locomotive_cms-2.0.0.rc10 app/views/locomotive/shared/_head.html.haml
locomotive_cms-2.0.0.rc9 app/views/locomotive/shared/_head.html.haml
locomotive_cms-2.0.0.rc8 app/views/locomotive/shared/_head.html.haml