Method: Adhoq::ExecutionDecorator#status_label_class

Defined in:
app/decorators/adhoq/execution_decorator.rb

#status_label_classObject



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