]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: New column job type in jobs list
authorDavide Franco <bacula-dev@dflc.ch>
Thu, 21 Jul 2011 16:18:39 +0000 (18:18 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:26 +0000 (14:49 +0200)
gui/bacula-web/jobs.php
gui/bacula-web/templates/jobs.tpl

index 6cd46dd290778ec1f57c2f5d520d33dc0e996671..5a35f6284674c7d85b9512c6a690fa0e12047427 100644 (file)
@@ -42,7 +42,7 @@
   // Global variables
   $job_level = array( 'D' => 'Diff', 'I' => 'Incr', 'F' => 'Full' );
   
-  $query .= "SELECT Job.JobId, Job.Name AS Job_name, Job.StartTime, Job.EndTime, Job.Level, Job.JobBytes, Job.JobFiles, Pool.Name, Job.JobStatus, Pool.Name AS Pool_name, Status.JobStatusLong ";
+  $query .= "SELECT Job.JobId, Job.Name AS Job_name, Job.Type, Job.StartTime, Job.EndTime, Job.Level, Job.JobBytes, Job.JobFiles, Pool.Name, Job.JobStatus, Pool.Name AS Pool_name, Status.JobStatusLong ";
   $query .= "FROM Job ";
   $query .= "LEFT JOIN Pool ON Job.PoolId=Pool.PoolId ";
   $query .= "LEFT JOIN Status ON Job.JobStatus = Status.JobStatus ";
index 58be37665b74bfc2fd69f70595f5ecf859486b8b..3c7888f19f97e1902043c9b23616f5feb46b23c5 100644 (file)
@@ -43,7 +43,8 @@
          <tr>
                <td class="tbl_header">Status</td>
                <td class="tbl_header">Job ID</td>
-               <td class="tbl_header">BackupJob</td>
+               <td class="tbl_header">Name</td>
+               <td class="tbl_header">Type</td>
                <td class="tbl_header">Start Time</td>
                <td class="tbl_header">End Time</td>
                <td class="tbl_header">Elapsed time</td>
@@ -62,6 +63,7 @@
                <td class="{$job.Job_classe}">
                        <a href="backupjob-report.php?backupjob_name={$job.job_name}">{$job.job_name}</a>
                </td>
+               <td class="{$job.Job_classe}">{$job.type}</td>
                <td class="{$job.Job_classe}">{$job.starttime}</td>
                <td class="{$job.Job_classe}">{$job.endtime}</td>
                <td class="{$job.Job_classe}">{$job.elapsed_time}</td>