Module: Kryptonite::ConfigHelper
- Included in:
- KryptoniteController
- Defined in:
- lib/generators/kryptonite/install/templates/app/helpers/kryptonite/config_helper.rb
Instance Method Summary collapse
-
#kryptonite_config_dashboard_url ⇒ Object
The page that the user is shown when they login or click the logo do not point this at kryptonite/index!.
-
#kryptonite_config_email_from_address ⇒ Object
The sender email address used for notifications.
-
#kryptonite_config_hostname ⇒ Object
The server hostname where Kryptonite will run.
-
#kryptonite_config_javascript_includes ⇒ Object
A list of JavaScript files to include in the page head section.
-
#kryptonite_config_logo ⇒ Object
URL to the logo used for the login screen and top banner - it should be a transparent PNG.
-
#kryptonite_config_stylesheet_includes ⇒ Object
A list of stylesheet files to include in the page head section.
-
#kryptonite_config_website_name ⇒ Object
Text string containing the name of the website or client Used in text and titles throughout Kryptonite.
Instance Method Details
#kryptonite_config_dashboard_url ⇒ Object
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_address ⇒ Object
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_hostname ⇒ Object
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_includes ⇒ Object
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_logo ⇒ Object
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_config_logo '/kryptonite/images/kryptonite.png' end |
#kryptonite_config_stylesheet_includes ⇒ Object
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_name ⇒ Object
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 |