Sha256: ed2e5c157006d58a3b7bd05979d8182c0a509107b30b740efbf91837ab516076

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 Bytes

Contents

# Funciones auxiliares para Fontawesome basadas en las de la gema
# fontawesome-rails.
module Msip
  module FontawesomeHelper

    # Genera grupo de menus
    def icono_fa(nomicon, opciones = {})
      content_tag(:i, class: "fa fa-#{nomicon}", 'aria-hidde' => true) do
        opciones[:texto] ? opciones[:texto] : opciones[:text]
      end
    end
    module_function :icono_fa

    alias_method :fa_icon, :icono_fa
    module_function :fa_icon
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
msip-2.2.0.alfa3 app/helpers/msip/fontawesome_helper.rb
msip-2.2.0.alfa2 app/helpers/msip/fontawesome_helper.rb
msip-2.2a2 app/helpers/msip/fontawesome_helper.rb