Browse files

tronprint is not in the footer, so let apps require it separately

  • Loading branch information...
1 parent 30c06dc commit 5e43737933dbe220d692b990900614717514a8d0 @seamusabshere seamusabshere committed Mar 14, 2012
View
1 brighter_planet_layout.gemspec
@@ -19,6 +19,5 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency 'tronprint', '>=1.2.0'
s.add_development_dependency 'test-unit'
end
View
1 lib/brighter_planet_layout.rb
@@ -1,6 +1,5 @@
require 'fileutils'
require 'singleton'
-#require 'tronprint'
require 'brighter_planet_metadata'
require 'brighter_planet_layout/version'
View
2 lib/brighter_planet_layout/rails.rb
@@ -1,11 +1,9 @@
if defined? ::Rails and ::Rails::VERSION::MAJOR == 2
require 'brighter_planet_layout'
- require 'tronprint/rails/tronprint_helper'
require ::BrighterPlanet.layout.helper_file
::Rails.configuration.to_prepare do
::ApplicationController.helper ::BrighterPlanetHelper
- ::ApplicationController.helper ::TronprintHelper
# sabshere 7/29/10 this makes it impossible to apply selectively
# ::ApplicationController.layout 'brighter_planet'
# sabshere 7/29/10 the view path appears to be magically appended
View
2 lib/brighter_planet_layout/railtie.rb
@@ -19,9 +19,7 @@ class Railtie < ::Rails::Railtie
end
config.to_prepare do
require ::BrighterPlanet.layout.helper_file
- require 'tronprint/rails/tronprint_helper'
::ApplicationController.helper ::BrighterPlanetHelper
- ::ApplicationController.helper ::TronprintHelper
::ApplicationController.layout 'brighter_planet'
end
end
View
6 public/stylesheets/brighter_planet.css
@@ -751,9 +751,3 @@ ul.pages li a:hover {
-webkit-border-radius: 3px;
border-radius: 3px;
}
-
-.tronprint-footprint {
- margin-top: 15px !important;
- font-size: 12px !important;
- color: #555 !important;
-}
View
1 test/dummy/app/controllers/application_controller.rb
@@ -1,4 +1,3 @@
class ApplicationController < ActionController::Base
- helper TronprintHelper
protect_from_forgery
end

0 comments on commit 5e43737

Please sign in to comment.