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.
9 lines
357 B
9 lines
357 B
# Font Awesome Helper
|
|
module IconHelper
|
|
def fa_icon(name, extra_class = nil, style: :regular, size: nil)
|
|
content_class = "fa-#{style.to_s.dasherize} fa-#{name.to_s.dasherize}"
|
|
content_class << " fa-#{size.to_s.dasherize}" if size
|
|
content_class << " #{extra_class}" if extra_class
|
|
tag.i(class: content_class, 'aria-hidden': true)
|
|
end
|
|
end
|