Module: Adhoq::ExecutionDecorator
- Defined in:
- app/decorators/adhoq/execution_decorator.rb
Instance Method Summary collapse
Instance Method Details
#status_label ⇒ Object
2 3 4 5 6 |
# File 'app/decorators/adhoq/execution_decorator.rb', line 2 def status_label content_tag :span, class: ["label", status_label_class] do status end end |
#status_label_class ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/decorators/adhoq/execution_decorator.rb', line 8 def status_label_class case status when "success" "label-success" when "failure" "label-danger" when "requested" "label-default" else "label-default" end end |