Module: Kryptonite::ConfigHelper

Included in:
KryptoniteController
Defined in:
lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb

Instance Method Summary collapse

Instance Method Details

#kryptonite_config_dashboard_urlObject

The page that the user is shown when they login or click the logo do not point this at kryptonite/index!



31
32
33
# File 'lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb', line 31

def kryptonite_config_dashboard_url
	url_for :controller => :kryptonite, :action => :blank
end

#kryptonite_config_email_from_addressObject

The sender email address used for notifications



25
26
27
# File 'lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb', line 25

def kryptonite_config_email_from_address
	'[email protected]'
end

#kryptonite_config_hostnameObject

The server hostname where Kryptonite will run



16
17
18
19
20
21
22
# File 'lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb', line 16

def kryptonite_config_hostname
  if ENV['RAILS_ENV'] == 'production'
    'http://www.kryptonitecms.com'
  else
    'http://localhost:3000'
  end
end

#kryptonite_config_javascript_includesObject

A list of JavaScript files to include in the page head section



41
42
43
# File 'lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb', line 41

def kryptonite_config_javascript_includes
  %w[/kryptonite/javascripts/jquery /kryptonite/javascripts/custom /kryptonite/javascripts/kryptonite /kryptonite/javascripts/rails]
end

#kryptonite_config_logoObject

URL to the logo used for the login screen and top banner - it should be a transparent PNG



11
12
13
# File 'lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb', line 11

def 
	'/kryptonite/images/kryptonite.png'
end

#kryptonite_config_stylesheet_includesObject

A list of stylesheet files to include in the page head section



36
37
38
# File 'lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb', line 36

def kryptonite_config_stylesheet_includes
	%w[/kryptonite/stylesheets/custom /kryptonite/stylesheets/screen /kryptonite/stylesheets/elements]
end

#kryptonite_config_website_nameObject

Text string containing the name of the website or client Used in text and titles throughout Kryptonite



6
7
8
# File 'lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb', line 6

def kryptonite_config_website_name
	'Kryptonite'
end