Module: EmpresaulaHelper
- Defined in:
- app/helpers/empresaula_helper.rb
Instance Method Summary collapse
-
#favicon ⇒ Object
Use it in your views to automatically add the favicon header tag.
-
#logo(options = {}) ⇒ Object
Puts the logo.
Instance Method Details
#favicon ⇒ Object
Use it in your views to automatically add the favicon header tag
4 5 6 |
# File 'app/helpers/empresaula_helper.rb', line 4 def favicon tag :link, rel: 'shortcut icon', href: asset_path('empresaula/favicon.png') end |
#logo(options = {}) ⇒ Object
Puts the logo
9 10 11 12 13 14 15 16 17 |
# File 'app/helpers/empresaula_helper.rb', line 9 def logo( = {}) [:url] ||= '/' [:title] ||= 'Empresaula' [:color] = !![:color] img = [:color] ? 'empresaula/logo-color.png' : 'empresaula/logo.png' content_tag :a, href: [:url], title: [:title] do image_tag img, alt: [:title], size: '328x72' end end |