From: Davide Franco Date: Wed, 22 Dec 2010 13:26:22 +0000 (+0100) Subject: bacula-web: Improved Running jobs in jobs page X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f4efd7046deb204d85eae399d88c135403ad24b;p=bacula%2Fbacula bacula-web: Improved Running jobs in jobs page - Improved lisibility of running jobs list --- diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index c26d85f568..63f218ec16 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -48,6 +48,10 @@ } $job['elapsed_time'] = $elapsed; + // Odd or even row + if( count($running_jobs) % 2) + $job['Job_classe'] = 'odd'; + array_push( $running_jobs, $job); } } diff --git a/gui/bacula-web/templates/jobs.tpl b/gui/bacula-web/templates/jobs.tpl index b57d8e7d3c..b7464b73be 100644 --- a/gui/bacula-web/templates/jobs.tpl +++ b/gui/bacula-web/templates/jobs.tpl @@ -36,13 +36,13 @@ {foreach from=$running_jobs item=job} - {$job.JobStatusLong} - {$job.JobId} - {$job.Name} - {$job.StartTime} - {$job.elapsed_time} - {$job.Level} - {$job.Pool_name} + {$job.JobStatusLong} + {$job.JobId} + {$job.Name} + {$job.StartTime} + {$job.elapsed_time} + {$job.Level} + {$job.Pool_name} {/foreach}