mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-10 22:52:37 +01:00
Add the style parameter
This commit is contained in:
parent
8c2c165480
commit
ea6c11c3a4
3 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
module IconHelper
|
||||
include FontAwesome::Sass::Rails::ViewHelpers
|
||||
|
||||
def icon_fw(icon, text = nil, html_options = {})
|
||||
def icon_fw(style, name, text = nil, html_options = {})
|
||||
text, html_options = nil, text if text.is_a?(Hash)
|
||||
|
||||
if html_options.key?(:class)
|
||||
|
|
@ -10,6 +10,6 @@ module IconHelper
|
|||
html_options[:class] = "fa-fw"
|
||||
end
|
||||
|
||||
icon(icon, text, html_options)
|
||||
icon(style, name, text, html_options)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue