mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
15 lines
382 B
Ruby
15 lines
382 B
Ruby
module IconHelper
|
|
include FontAwesome::Sass::Rails::ViewHelpers
|
|
|
|
def icon_fw(style, name, text = nil, html_options = {})
|
|
text, html_options = nil, text if text.is_a?(Hash)
|
|
|
|
if html_options.key?(:class)
|
|
html_options[:class] = "fa-fw #{html_options[:class]}"
|
|
else
|
|
html_options[:class] = "fa-fw"
|
|
end
|
|
|
|
icon(style, name, text, html_options)
|
|
end
|
|
end
|