]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Improved Running jobs in jobs page
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 22 Dec 2010 13:26:22 +0000 (14:26 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:34 +0000 (14:43 +0200)
 - Improved lisibility of running jobs list

gui/bacula-web/jobs.php
gui/bacula-web/templates/jobs.tpl

index c26d85f568b7026b94416bca035730b70bae0489..63f218ec16274531c4cf849fc6b92bfcee51c56d 100644 (file)
                }
                $job['elapsed_time'] = $elapsed;
                
+               // Odd or even row
+               if( count($running_jobs) % 2)
+                       $job['Job_classe'] = 'odd';
+               
                array_push( $running_jobs, $job);
          }
   }
index b57d8e7d3cc4b926de46baff7b00360232add0e6..b7464b73be1f1a71f8cb1e6670cb42432314310e 100644 (file)
                </tr>
                {foreach from=$running_jobs item=job}
                <tr>
-                       <td>{$job.JobStatusLong}</td>
-                       <td>{$job.JobId}</td>
-                       <td>{$job.Name}</td>
-                       <td>{$job.StartTime}</td>
-                       <td>{$job.elapsed_time}</td>
-                       <td>{$job.Level}</td>
-                       <td>{$job.Pool_name}</td>
+                       <td class="{$job.Job_classe}">{$job.JobStatusLong}</td>
+                       <td class="{$job.Job_classe}">{$job.JobId}</td>
+                       <td class="{$job.Job_classe}">{$job.Name}</td>
+                       <td class="{$job.Job_classe}">{$job.StartTime}</td>
+                       <td class="{$job.Job_classe}">{$job.elapsed_time}</td>
+                       <td class="{$job.Job_classe}">{$job.Level}</td>
+                       <td class="{$job.Job_classe}">{$job.Pool_name}</td>
                </tr>
                {/foreach}
        </table>