Module: BootstrapEngineHelper
- Defined in:
- app/helpers/bootstrap_engine_helper.rb
Overview
RAILS BOOTSTRAP ENGINE
Copyright 2012-2013 Luiz Eduardo de Oliveira Fonseca, AgĂȘncia Orangeweb
Licensed under The MIT License
Instance Method Summary collapse
-
#application_brand ⇒ Object
Describes the Application Brand Name.
-
#copyright_info ⇒ Object
Represents the Copyright Info.
-
#page_title(title = "") ⇒ Object
Represents the Page title.
-
#vendor_brand ⇒ Object
Describes the Vendor Brand Name.
-
#vendor_url ⇒ Object
Describes the Vendor Url.
Instance Method Details
#application_brand ⇒ Object
Describes the Application Brand Name
39 40 41 |
# File 'app/helpers/bootstrap_engine_helper.rb', line 39 def application_brand "Bootstrap Engine Helper" end |
#copyright_info ⇒ Object
Represents the Copyright Info
59 60 61 |
# File 'app/helpers/bootstrap_engine_helper.rb', line 59 def copyright_info content_tag :p, link_to(raw("© #{vendor_brand} #{Date.today.year}"), vendor_url) end |
#page_title(title = "") ⇒ Object
Represents the Page title
49 50 51 |
# File 'app/helpers/bootstrap_engine_helper.rb', line 49 def page_title(title="") content_for :header_title do "#{title} | #{ application_brand }" end end |
#vendor_brand ⇒ Object
Describes the Vendor Brand Name
20 21 22 |
# File 'app/helpers/bootstrap_engine_helper.rb', line 20 def vendor_brand "Minha Empresa" end |
#vendor_url ⇒ Object
Describes the Vendor Url
29 30 31 |
# File 'app/helpers/bootstrap_engine_helper.rb', line 29 def vendor_url 'http://www.minhaempresa.com.br' end |