2936: improve progress bar for failed jobs
authorTim Pierce <twp@curoverse.com>
Tue, 17 Jun 2014 13:57:00 +0000 (09:57 -0400)
committerTim Pierce <twp@curoverse.com>
Tue, 17 Jun 2014 13:57:00 +0000 (09:57 -0400)
commit4b8a53c9cfc81a942f985f1799dbc6e27deb3bc2
treefce19880809b078ccfc0b60537dc76abf149bc38
parent95811b3a901df3ceab701fe18e9ec1bb614bef90
2936: improve progress bar for failed jobs

Ensure that:

* All job progress bars reflect at least one task.  If a job has no
  tasks at all (done, failed, finished, or todo) that should be
  considered a failed job, so render a progress bar as though one task
  ran and failed.

* A failed job (j[:success] == false) always shows at least one failed
  task.  If a job is marked as failed but has no failed tasks, then
  pretend there was one failed task so at least some red will appear in
  the progress bar.

Fixes #2936.
apps/workbench/app/views/application/_job_progress.html.erb