Module: Bolt::ConfigHelper

Included in:
BoltController
Defined in:
app/helpers/bolt/config_helper.rb

Instance Method Summary collapse

Instance Method Details

#bolt_config_dashboard_urlObject

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_addressObject

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_hostnameObject

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_includesObject

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_logoObject

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/images/backbone.png'
end

#bolt_config_stylesheet_includesObject

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_nameObject

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