Module: EsrRecordHelper
- Defined in:
- app/helpers/esr_record_helper.rb
Instance Method Summary collapse
Instance Method Details
#event_image(event) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/helpers/esr_record_helper.rb', line 2 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 |