You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
596 B
19 lines
596 B
module ApplicationHelper
|
|
def page_title
|
|
default = 'Air-one Services'
|
|
@title.nil? ? default : @title
|
|
end
|
|
def page_description
|
|
default = 'Quality commercial, residential, and industrial '+
|
|
'HVAC, electrical and plumbing services since 1965'
|
|
@description.nil? ? default : @description
|
|
end
|
|
def stylesheet_links
|
|
default = %w{reset grids layout}
|
|
styles = @stylesheets.nil? ? default : @stylesheets
|
|
html = styles.collect do |style|
|
|
"<link rel='stylesheet' media='screen' href='stylesheets/#{style}.css' />"
|
|
end
|
|
html.join("\n")
|
|
end
|
|
end
|