]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Changed icons apparence and filename for jobs page
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 27 May 2011 16:33:10 +0000 (18:33 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:11 +0000 (14:49 +0200)
 - New icon for jobs with status "completed with errors"
 - Changed icon for jobs status "Fatal error"
 - Renammed some icons file and removed useless

gui/bacula-web/jobs.php

index 27f551a8ea1102ddb0931f2273223a461b7937eb..9bf9751d8ee4716ed6e94251ca3e0cbbe533877d 100644 (file)
                        $query .= "WHERE Job.JobStatus = 'R' ";
                break;
                case 'waiting':
-                       $query .= "WHERE Job.JobStatus IN ('F','S','M','m','s','j','c','d','t','C') ";
+                       $query .= "WHERE Job.JobStatus IN ('F','S','M','m','s','j','c','d','t','p','C') ";
                break;
                case 'completed':
-                       $query .= "WHERE Job.JobStatus = 'T' ";
+                       $query .= "WHERE Job.JobStatus IN ('T', 'E') ";
                break;
                case 'failed':
-                       $query .= "WHERE Job.JobStatus IN ('f','E') ";
+                       $query .= "WHERE Job.JobStatus = 'f' ";
                break;
                case 'canceled':
                        $query .= "WHERE Job.JobStatus = 'A' ";
                                $job['Job_icon'] = "running.png";
                        break;
                        case 'T':
-                               $job['Job_icon'] = "s_ok.png";
+                               $job['Job_icon'] = "ok.png";
                        break;
                        case 'A':
-                       case 'f':
+                               $job['Job_icon'] = "canceled.png";
+                       break;
                        case 'E':
-                               $job['Job_icon'] = "s_error.gif";
+                               $job['Job_icon'] = "warning.png";
+                       break;
+                       case 'f':
+                               $job['Job_icon'] = "error.png";
                        break;
                        case 'F':
                        case 'S':