Migrate to font-awesome 5.0. (#8799)
This commit is contained in:
committed by
Eugen Rochko
parent
15fc2b76f9
commit
8bae14591b
@ -55,7 +55,7 @@ module ApplicationHelper
|
||||
|
||||
def fa_icon(icon, attributes = {})
|
||||
class_names = attributes[:class]&.split(' ') || []
|
||||
class_names << 'fa'
|
||||
class_names << 'fas'
|
||||
class_names += icon.split(' ').map { |cl| "fa-#{cl}" }
|
||||
|
||||
content_tag(:i, nil, attributes.merge(class: class_names.join(' ')))
|
||||
|
Reference in New Issue
Block a user