vivre_app/app/helpers/icon_helper.rb

22 lines
299 B
Ruby

# -*- encoding : utf-8 -*-
module IconHelper
def i(icon_name, options = {:icon => true})
if options[:icon]
raw ('<i class="icon fa fa-'+icon_name.to_s+'"></i>')
else
raw ('<i class="fa fa-'+icon_name.to_s+'"></i>')
end
end
end