Module: Bolt::ConfigHelper
- Included in:
- BoltController
- Defined in:
- app/helpers/bolt/config_helper.rb
Instance Method Summary collapse
-
#bolt_config_dashboard_url ⇒ Object
The page that the user is shown when they login or click the logo do not point this at backbone/index!.
-
#bolt_config_email_from_address ⇒ Object
The sender email address used for notifications.
-
#bolt_config_hostname ⇒ Object
The server hostname where Backbone will run.
-
#bolt_config_javascript_includes ⇒ Object
A list of JavaScript files to include in the page head section.
-
#bolt_config_logo ⇒ Object
URL to the logo used for the login screen and top banner - it should be a transparent PNG.
-
#bolt_config_stylesheet_includes ⇒ Object
A list of stylesheet files to include in the page head section.
-
#bolt_config_website_name ⇒ Object
Text string containing the name of the website or client Used in text and titles throughout Backbone.
Instance Method Details
#bolt_config_dashboard_url ⇒ Object
The page that the user is shown when they login or click the logo do not point this at backbone/index!
31 32 33 |
# File 'app/helpers/bolt/config_helper.rb', line 31 def bolt_config_dashboard_url url_for :controller => :dashboard, :action => :index end |
#bolt_config_email_from_address ⇒ Object
The sender email address used for notifications
25 26 27 |
# File 'app/helpers/bolt/config_helper.rb', line 25 def bolt_config_email_from_address '[email protected]' end |
#bolt_config_hostname ⇒ Object
The server hostname where Backbone will run
16 17 18 19 20 21 22 |
# File 'app/helpers/bolt/config_helper.rb', line 16 def bolt_config_hostname if ENV['RAILS_ENV'] == 'production' 'http://localhost:3000' else 'http://localhost:3000' end end |
#bolt_config_javascript_includes ⇒ Object
A list of JavaScript files to include in the page head section
41 42 43 |
# File 'app/helpers/bolt/config_helper.rb', line 41 def bolt_config_javascript_includes %w[/bolt/javascripts/jquery /bolt/javascripts/custom /bolt/javascripts/backbone /bolt/javascripts/rails] end |
#bolt_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 'app/helpers/bolt/config_helper.rb', line 11 def bolt_config_logo '/bolt/images/backbone.png' end |
#bolt_config_stylesheet_includes ⇒ Object
A list of stylesheet files to include in the page head section
36 37 38 |
# File 'app/helpers/bolt/config_helper.rb', line 36 def bolt_config_stylesheet_includes %w[/bolt/stylesheets/custom /bolt/stylesheets/screen /bolt/stylesheets/elements] end |
#bolt_config_website_name ⇒ Object
Text string containing the name of the website or client Used in text and titles throughout Backbone
6 7 8 |
# File 'app/helpers/bolt/config_helper.rb', line 6 def bolt_config_website_name 'Bolt' end |