Sha256: b726d815b6ee3d135c86a40ffea3b2a97a2f788df91d66eac9dcdf94f761829a

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

module EsrRecordHelper
  def event_image(event)
    html_class = case event.to_s
                 when 'book_extra_earning'
                   'icon-circle-arrow-up'
                 when 'reactivate'
                   'icon-refresh'
                 when 'resolve'
                   'icon-ok'
                 when 'show_all'
                   'icon-list-alt'
                 when 'write_off'
                   'icon-circle-arrow-down'
                 end

    content_tag :span, '', class: html_class
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vesr-1.1.1 app/helpers/esr_record_helper.rb
vesr-1.1.0 app/helpers/esr_record_helper.rb
vesr-1.0.1 app/helpers/esr_record_helper.rb