refinerycms-brushart_logo 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,57 +1,44 @@
1
1
  <%
2
- # Internet Explorer is fine with JS caching, but cache CSS and kaboom.
3
- # Would be great if someone could fix this?
4
- js_caching = RefinerySetting.find_or_set(:use_resource_caching, Rails.root.writable?)
5
- css_caching = js_caching && request.env['HTTP_USER_AGENT'] !~ /MSIE/
6
- login = defined?(login) ? login : login?
2
+ if (yielded_head = yield(:head)).present?
3
+ logger.warn "\n-- DEPRECATION WARNING --"
4
+ logger.warn "The use of 'content_for :head' is DEPRECATED for the admin layouts."
5
+ logger.warn "For stylesheets, use content_for :stylesheets"
6
+ logger.warn "For javascripts, use content_for :javascripts"
7
+ logger.warn "For meta tags, use content_for :meta"
8
+ logger.warn "This change is necessary so that we can deliver a performant experience for the user."
9
+ logger.warn "Called from: #{caller.detect{|c| c =~ %r{#{Rails.root.to_s}}}.inspect.to_s.split(':in').first}\n\n"
10
+ end
11
+ if (yielded_head_libraries = yield(:head)).present?
12
+ logger.warn "\n-- DEPRECATION WARNING --"
13
+ logger.warn "The use of 'content_for :head_libraries' is DEPRECATED for the admin layouts."
14
+ logger.warn "Please use content_for :before_javascript_libraries or content_for :after_javascript_libraries instead."
15
+ logger.warn "This change is necessary so that we can deliver a performant experience for the user."
16
+ logger.warn "Called from: #{caller.detect{|c| c =~ %r{#{Rails.root.to_s}}}.inspect.to_s.split(':in').first}\n\n"
17
+ end
7
18
  -%>
8
19
  <head>
9
- <meta charset='<%= Refinery::Application.config.encoding %>' />
20
+ <meta charset='<%= ::Refinery::Application.config.encoding %>' />
10
21
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
22
+ <%= yield :meta %>
11
23
  <title><%= RefinerySetting.find_or_set(:site_name, 'Company Name') -%> - Refinery</title>
12
24
  <%= csrf_meta_tag %>
13
- <%= render(:partial => '/shared/html5_for_ie.js').html_safe if request.env['HTTP_USER_AGENT'] =~ /MSIE/ %>
14
25
 
15
26
  <%= stylesheet_link_tag 'refinery/site_bar',
16
27
  'refinery/refinery',
17
- 'refinery/custom.css',
28
+ 'refinery/custom',
18
29
  'refinery/ui',
30
+ 'refinery/submenu',
19
31
  'refinery/tooltips',
20
32
  'wymeditor/skins/refinery/skin',
21
- :cache => (css_caching ? "cache/refinery" : false) -%>
33
+ :cache => ("cache/refinery" if Rails.root.writable? and
34
+ RefinerySetting.find_or_set(:use_resource_caching, true) and
35
+ request.env['HTTP_USER_AGENT'] !~ /MSIE/) -%>
22
36
 
23
- <%= yield :head_before_javascript_libraries -%>
24
- <%= javascript_include_tag 'refinery/i18n' -%>
25
- <script type='text/javascript'>I18n.locale = '<%= I18n.locale %>';</script>
37
+ <%= yield :stylesheets %>
26
38
 
27
- <%= jquery_include_tags(:caching => js_caching) -%>
39
+ <%= javascript_include_tag 'modernizr-min' %>
28
40
 
29
- <% #TODO: Find out why the master branch doesn't work! %>
30
- <%#= javascript_include_tag 'http://github.com/rails/jquery-ujs/raw/master/src/rails.js' %>
31
- <%= javascript_include_tag 'http://github.com/rails/jquery-ujs/raw/f01a685c8200b76c4cc2c606accb135da5ad5444/src/rails.js' %>
32
-
33
-
34
- <%= javascript_include_tag 'jquery/jquery.corner.js',
35
- 'jquery/jquery.textTruncate.js',
36
- 'jquery/jquery.html5-placeholder-shim.js',
37
- 'jquery/jquery.timers.js',
38
- 'jquery/jquery.jcarousel.js',
39
- :cache => (js_caching ? "cache/jquery-plugins" : false) unless login -%>
40
-
41
- <%= yield :head_after_javascript_libraries -%>
42
-
43
- <%= javascript_include_tag 'wymeditor/jquery.refinery.wymeditor.js',
44
- 'admin',
45
- 'refinery/boot_wym',
46
- 'refinery/core',
47
- 'refinery/admin',
48
- :cache => (js_caching ? "cache/admin" : false) unless login -%>
49
- <%= javascript_include_tag 'refinery/core' if login -%>
50
-
51
- <% if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
52
- <%= "<!--[if lt IE 8]>#{stylesheet_link_tag 'refinery/ie-less-than-8'}<![endif]-->".html_safe -%>
53
- <%= "<!--[if IE 8]>#{stylesheet_link_tag 'refinery/ie-less-than-9'}<![endif]-->".html_safe -%>
54
- <% end -%>
55
-
56
- <%= yield :head -%>
41
+ <% #TODO: REMOVE yielded_head and yielded_head_libraries and deprecation notice 0.9.9 <=> 1.0 %>
42
+ <%= yielded_head_libraries %>
43
+ <%= yielded_head %>
57
44
  </head>
@@ -3,7 +3,7 @@ require 'refinery'
3
3
  module Refinery
4
4
  module BrushartLogo
5
5
  def self.version
6
- %{0.1.3}
6
+ %{0.1.4}
7
7
  end
8
8
 
9
9
  if defined?(Rails)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-brushart_logo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacob Swanner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-01 00:00:00 -05:00
18
+ date: 2011-02-02 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21