Sha256: 23fb1f1916705f619b7b1de4ee07b21522539be5462ac1d1757a6a54b6590cca

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 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] }

= 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.mounted_on       = '#{Locomotive.mounted_on}';
    Locomotive.current_site     = new Locomotive.Models.Site(#{current_site.to_json});
    Locomotive.current_account  = new Locomotive.Models.Account(#{current_locomotive_account.to_json});

    $(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

3 entries across 3 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc4 app/views/locomotive/shared/_head.html.haml
locomotive_cms-2.0.0.rc2 app/views/locomotive/shared/_head.html.haml
locomotive_cms-2.0.0.rc1 app/views/locomotive/shared/_head.html.haml