2 <span class="label label-success"><%= if defined? title then title else 'success' end %></span>
3 <% elsif j[:success] == false %>
4 <span class="label label-danger"><%= if defined? title then title else 'failed' end %></span>
5 <% elsif j[:finished_at] %>
6 <span class="label label-default"><%= if defined? title then title else 'finished' end %></span>
7 <% elsif j[:started_at] %>
8 <span class="label label-info"><%= if defined? title then title else 'running' end %></span>
10 <span class="label label-default"><%= if defined? title then title else 'queued' end %></span>
12 <span class="label label-default"><%= if defined? title then title else 'not ready' end %></span>