Sha256: e09b69575de654f6728de84bb453584b9769df6d23305208492b5ee787fc34a4

Contents?: true

Size: 1.45 KB

Versions: 11

Compression:

Stored size: 1.45 KB

Contents

module Kryptonite
  module ConfigHelper
    
  	# Text string containing the name of the website or client
  	# Used in text and titles throughout Kryptonite
    def kryptonite_config_website_name
    	'Kryptonite'
    end

  	# URL to the logo used for the login screen and top banner - it should be a transparent PNG
    def kryptonite_config_logo
    	'/kryptonite/images/kryptonite.png'
    end

  	# The server hostname where Kryptonite will run
    def kryptonite_config_hostname
      if ENV['RAILS_ENV'] == 'production'
        'http://www.kryptonitecms.com'
      else
        'http://localhost:3000'
      end
    end

  	# The sender email address used for notifications
  	def kryptonite_config_email_from_address
  		'donotreply@kryptonitecms.com'
  	end
	
  	# The page that the user is shown when they login or click the logo
  	# do not point this at kryptonite/index!
  	def kryptonite_config_dashboard_url
  		url_for :controller => :kryptonite, :action => :blank
  	end
	
  	# A list of stylesheet files to include in the page head section
  	def kryptonite_config_stylesheet_includes
  		%w[/kryptonite/stylesheets/custom /kryptonite/stylesheets/screen /kryptonite/stylesheets/elements]
  	end
	
  	# A list of JavaScript files to include in the page head section
  	def kryptonite_config_javascript_includes
  	  %w[/kryptonite/javascripts/jquery /kryptonite/javascripts/custom /kryptonite/javascripts/kryptonite /kryptonite/javascripts/rails]
  	end
  	
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kryptonite-0.1.0 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.10 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.9 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.8 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.7 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.6 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.5 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.4 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.3 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.2 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
kryptonite-0.0.1 lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb