* Move all Diaspora-specific javascripts to app/assets/javascripts * Move all vendored javascripts to vendor/assets/javascripts * Add the appropriate Sprockets require directives to make sure everything gets included in the right order * Remove Jammit dependencies * Fix all templates that were using Jammit's include_javascripts helper * Add handlebars_assets gem for compiling Handlebars templates * Move all Handlebars templates to app/assets/templates and rename from .handlebars to .jst.hbs (this is to keep them in the same global JST namespace that they were in under Jammit) * Add public/assets to .gitignore since these files can and should be re-generated by Heroku or Capistrano during each deploy * Fix a few Handlebars templates that were looking for images in the wrong location (I'm sure there are others, but it's late) * Configure application.rb to precompile all javascript and css assets that were compiled by Jammit in the Rails 3.0 code
55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
!!!
|
|
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
|
|
%head
|
|
%meta{:charset => 'utf-8'}
|
|
%meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1'}
|
|
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}
|
|
|
|
%meta{:name => "description", :content => "Diaspora*"}
|
|
%meta{:name => "author", :content => "Diaspora, Inc."}
|
|
|
|
%meta{:name => "HandheldFriendly", :content => "True"}
|
|
%meta{:name => "MobileOptimized", :content => "320"}
|
|
%meta{:name => "viewport", :content => "initial-scale=1, maximum-scale=1"}
|
|
|
|
%link{:rel => 'shortcut icon', :href => '/favicon.png'}
|
|
%link{:rel => 'apple-touch-icon', :href => '/apple-touch-icon.png'}
|
|
|
|
%title
|
|
= page_title yield(:page_title)
|
|
|
|
= include_base_css_framework(:bootstrap)
|
|
= stylesheet_link_tag :default, :new_templates, :media => 'all'
|
|
|
|
- if rtl?
|
|
= stylesheet_link_tag :rtl, :media => 'all'
|
|
|
|
= old_browser_js_support
|
|
<!--[if IE]>
|
|
= javascript_include_tag :ie
|
|
<![endif]-->
|
|
|
|
= jquery_include_tag
|
|
|
|
= set_current_user_in_javascript
|
|
|
|
- unless @landing_page
|
|
= javascript_include_tag :main, :templates
|
|
= load_javascript_locales
|
|
|
|
= set_asset_host
|
|
= translation_missing_warnings
|
|
= current_user_atom_tag
|
|
|
|
= yield(:head)
|
|
= csrf_meta_tag
|
|
|
|
%body
|
|
= flash_messages
|
|
#container
|
|
|
|
= yield
|