Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from fbergkemper/barbossa-0.0.1
Browse files Browse the repository at this point in the history
JobStatus Helper
  • Loading branch information
frabdev committed Nov 21, 2013
2 parents 326664f + 9103752 commit 48b23ac
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion module/Application/src/Application/View/Helper/JobStatus.php
Expand Up @@ -25,8 +25,59 @@ public function __invoke($jobStatus)
case 'T':
$output = '<span class="label label-success">Success</span>';
break;
case 'R':
$output = '<span class="label label-info">Running</span>';
break;
case 'C':
$output = '<span class="label label-default">Created no yet running</span>';
break;
case 'B':
$output = '<span class="label label-warning">Blocked</span>';
break;
case 'D':
$output = '<span class="label label-warning">Verify found differences</span>';
break;
case 'A':
$output = '<span class="label label-warning">Canceled by user</span>';
break;
case 'F':
$output = '<span class="label label-default">Waiting for client</span>';
break;
case 'S':
$output = '<span class="label label-default">Waiting for storage daemon</span>';
break;
case 'm':
$output = '<span class="label label-default">Waiting for new media</span>';
break;
case 'M':
$output = '<span class="label label-default">Waiting for media mount</span>';
break;
case 's':
$output = '<span class="label label-default">Waiting for storage resource</span>';
break;
case 'j':
$output = '<span class="label label-default">Waiting for job resource</span>';
break;
case 'c':
$output = '<span class="label label-default">Waiting for client resource</span>';
break;
case 'd':
$output = '<span class="label label-default">Waiting on maximum jobs</span>';
break;
case 't':
$output = '<span class="label label-default">Waiting on starttime</span>';
break;
case 'p':
$output = '<span class="label label-default">Waiting on higher priority jobs</span>';
break;
case 'a':
$output = '<span class="label label-info">SD despooling attributes</span>';
break;
case 'i':
$output = '<span class="label label-info">Doing batch insert file records</span>';
break;
default:
$output = $jobStatus;
$output = '<span class="label label-primary">' . $jobStatus . '</span>';
break;
}

Expand Down

0 comments on commit 48b23ac

Please sign in to comment.