refinerycms-brushart_logo 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,57 @@
|
|
|
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?
|
|
7
|
+
-%>
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset='<%= Refinery::Application.config.encoding %>' />
|
|
10
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
11
|
+
<title><%= RefinerySetting.find_or_set(:site_name, 'Company Name') -%> - Refinery</title>
|
|
12
|
+
<%= csrf_meta_tag %>
|
|
13
|
+
<%= render(:partial => '/shared/html5_for_ie.js').html_safe if request.env['HTTP_USER_AGENT'] =~ /MSIE/ %>
|
|
14
|
+
|
|
15
|
+
<%= stylesheet_link_tag 'refinery/site_bar',
|
|
16
|
+
'refinery/refinery',
|
|
17
|
+
'refinery/custom.css',
|
|
18
|
+
'refinery/ui',
|
|
19
|
+
'refinery/tooltips',
|
|
20
|
+
'wymeditor/skins/refinery/skin',
|
|
21
|
+
:cache => (css_caching ? "cache/refinery" : false) -%>
|
|
22
|
+
|
|
23
|
+
<%= yield :head_before_javascript_libraries -%>
|
|
24
|
+
<%= javascript_include_tag 'refinery/i18n' -%>
|
|
25
|
+
<script type='text/javascript'>I18n.locale = '<%= I18n.locale %>';</script>
|
|
26
|
+
|
|
27
|
+
<%= jquery_include_tags(:caching => js_caching) -%>
|
|
28
|
+
|
|
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 -%>
|
|
57
|
+
</head>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<% if refinery_user? %>
|
|
2
|
+
<% unless admin? # jquery scripts should already be cached when using the site bar as login has happened. %>
|
|
3
|
+
<% content_for :site_bar_assets do %>
|
|
4
|
+
<%= stylesheet_link_tag('refinery/site_bar') unless exclude_css ||= false %>
|
|
5
|
+
<%= jquery_include_tags(:jquery_ui => false) unless exclude_jquery ||= false %>
|
|
6
|
+
<%= javascript_include_tag('jquery/jquery.corner.js') unless exclude_cornering_library ||= false %>
|
|
7
|
+
<%= javascript_include_tag('refinery/site_bar') unless exclude_site_bar_javascript ||= false %>
|
|
8
|
+
<% end %>
|
|
9
|
+
<% content_for :head, yield(:site_bar_assets) if (head ||= false) %>
|
|
10
|
+
<%= yield(:site_bar_assets) unless head %>
|
|
11
|
+
<% end -%>
|
|
12
|
+
<div id='site_bar'>
|
|
13
|
+
<div id='site_bar_content' class='clearfix'>
|
|
14
|
+
<div id='editor_switch'>
|
|
15
|
+
<%= site_bar_switch_link -%>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<%= image_tag "refinery/ba-cms.png", :alt => "Refinery (tm) Content Manager", :id => 'brush-art-logo' %>
|
|
19
|
+
|
|
20
|
+
<div id='site_bar_branding'>
|
|
21
|
+
<span id='site_bar_company_name'>
|
|
22
|
+
<%= RefinerySetting.find_or_set(:site_name, 'Company Name') %>
|
|
23
|
+
</span>
|
|
24
|
+
|
|
25
|
+
<%= link_to t('.log_out'), logout_url(:only_path => true),
|
|
26
|
+
:id => 'logout' %>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<% end %>
|
data/lib/gemspec.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require File.expand_path('../refinerycms-brushart_logo', __FILE__)
|
|
3
|
+
version = ::Refinery::BrushartLogo.version
|
|
4
|
+
raise "Could not get version so gemspec can not be built" if version.nil?
|
|
5
|
+
|
|
6
|
+
gemspec = <<EOF
|
|
7
|
+
Gem::Specification.new do |s|
|
|
8
|
+
s.name = %q{refinerycms-brushart_logo}
|
|
9
|
+
s.version = %q{#{version}}
|
|
10
|
+
s.description = %q{Brushart Logo engine for Refinery CMS.}
|
|
11
|
+
s.date = %q{#{Time.now.strftime('%Y-%m-%d')}}
|
|
12
|
+
s.summary = %q{Brushart Logo engine for Refinery CMS.}
|
|
13
|
+
s.email = %q{jacob@envylabs.com}
|
|
14
|
+
s.homepage = %q{http://envylabs.com}
|
|
15
|
+
s.authors = %w(Jacob\\ Swanner)
|
|
16
|
+
s.require_paths = %w(lib)
|
|
17
|
+
s.files = Dir['lib/**/*', 'app/**/*', 'public/**/*']
|
|
18
|
+
end
|
|
19
|
+
EOF
|
|
20
|
+
|
|
21
|
+
File.open(File.expand_path("../../refinerycms-brushart_logo.gemspec", __FILE__), 'w').puts(gemspec)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require 'refinery'
|
|
2
|
+
|
|
3
|
+
module Refinery
|
|
4
|
+
module BrushartLogo
|
|
5
|
+
def self.version
|
|
6
|
+
%{0.1.0}
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
if defined?(Rails)
|
|
10
|
+
class Engine < Rails::Engine
|
|
11
|
+
initializer "static assets" do |app|
|
|
12
|
+
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
config.after_initialize do
|
|
16
|
+
Refinery::Plugin.register do |plugin|
|
|
17
|
+
plugin.name = "brushart_logo"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
Binary file
|
metadata
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: refinerycms-brushart_logo
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 27
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 1
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.1.0
|
|
11
|
+
platform: ruby
|
|
12
|
+
authors:
|
|
13
|
+
- Jacob Swanner
|
|
14
|
+
autorequire:
|
|
15
|
+
bindir: bin
|
|
16
|
+
cert_chain: []
|
|
17
|
+
|
|
18
|
+
date: 2011-01-21 00:00:00 -05:00
|
|
19
|
+
default_executable:
|
|
20
|
+
dependencies: []
|
|
21
|
+
|
|
22
|
+
description: Brushart Logo engine for Refinery CMS.
|
|
23
|
+
email: jacob@envylabs.com
|
|
24
|
+
executables: []
|
|
25
|
+
|
|
26
|
+
extensions: []
|
|
27
|
+
|
|
28
|
+
extra_rdoc_files: []
|
|
29
|
+
|
|
30
|
+
files:
|
|
31
|
+
- lib/gemspec.rb
|
|
32
|
+
- lib/refinerycms-brushart_logo.rb
|
|
33
|
+
- app/views/admin/_head.html.erb
|
|
34
|
+
- app/views/shared/_site_bar.html.erb
|
|
35
|
+
- public/images/refinery/ba-cms.png
|
|
36
|
+
- public/stylesheets/refinery/custom.css
|
|
37
|
+
has_rdoc: true
|
|
38
|
+
homepage: http://envylabs.com
|
|
39
|
+
licenses: []
|
|
40
|
+
|
|
41
|
+
post_install_message:
|
|
42
|
+
rdoc_options: []
|
|
43
|
+
|
|
44
|
+
require_paths:
|
|
45
|
+
- lib
|
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
|
+
none: false
|
|
48
|
+
requirements:
|
|
49
|
+
- - ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
hash: 3
|
|
52
|
+
segments:
|
|
53
|
+
- 0
|
|
54
|
+
version: "0"
|
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
|
+
none: false
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
hash: 3
|
|
61
|
+
segments:
|
|
62
|
+
- 0
|
|
63
|
+
version: "0"
|
|
64
|
+
requirements: []
|
|
65
|
+
|
|
66
|
+
rubyforge_project:
|
|
67
|
+
rubygems_version: 1.3.7
|
|
68
|
+
signing_key:
|
|
69
|
+
specification_version: 3
|
|
70
|
+
summary: Brushart Logo engine for Refinery CMS.
|
|
71
|
+
test_files: []
|
|
72
|
+
|