Module: MissionControl::Jobs::InterfaceHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/mission_control/jobs/interface_helper.rb
Instance Method Summary collapse
- #blank_status_emoji(status) ⇒ Object
- #blank_status_notice(message) ⇒ Object
- #modifier_for_status(status) ⇒ Object
Instance Method Details
#blank_status_emoji(status) ⇒ Object
6 7 8 9 10 11 |
# File 'app/helpers/mission_control/jobs/interface_helper.rb', line 6 def blank_status_emoji(status) case status.to_s when "failed", "blocked" then "😌" else "" end end |
#blank_status_notice(message) ⇒ Object
2 3 4 |
# File 'app/helpers/mission_control/jobs/interface_helper.rb', line 2 def blank_status_notice() tag.div , class: "mt-6 has-text-centered is-size-3 has-text-grey" end |
#modifier_for_status(status) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/helpers/mission_control/jobs/interface_helper.rb', line 13 def modifier_for_status(status) case status.to_s when "failed" then "is-danger" when "blocked" then "is-warning" when "finished" then "is-success" when "scheduled" then "is-info" when "in_progress" then "is-primary" else "is-primary is-light" end end |