Module: DataMigration::ApplicationHelper
- Defined in:
- app/helpers/data_migration/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#execution_status_color(status) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/data_migration/application_helper.rb', line 5 def execution_status_color(status) case status.to_sym when :pending 'secondary' when :running 'primary' when :completed 'success' when :failed 'danger' else 'secondary' end end |
#execution_type_icon(type) ⇒ Object
20 21 22 |
# File 'app/helpers/data_migration/application_helper.rb', line 20 def execution_type_icon(type) type.to_sym == :export ? '📤' : '📥' end |