zeus.ugent.be/lib/helpers/font_awesome.rb
2016-08-04 19:17:45 +02:00

10 lines
232 B
Ruby

module FontAwesomeHelper
def fa(icon, size: nil, li: false, inline: false)
classes = ['fa', "fa-#{icon}"]
classes << "fa-#{size}" if size
classes << 'fa-li' if li
"<i class='#{classes.join(' ')}'></i>"
end
end