From: Davide Franco Date: Mon, 31 Jan 2011 16:35:51 +0000 (+0100) Subject: bacula-web: Changed last used volume in main dashboard X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=33c67546df2501378e2ea9d68686b00fd1a763a5;p=bacula%2Fbacula bacula-web: Changed last used volume in main dashboard - Limited to last 10 used volumes in main dashboard - Added last written information to the list - Changed css class attribute in default.css --- diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 2ff9bbf832..ee8276175a 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -165,11 +165,11 @@ $smarty->assign('graph_stored_bytes', $graph->Get_Image_file() ); // Last 15 used volumes $vol_list = array(); -$query = "SELECT DISTINCT Media.Volumename, Media.VolStatus, Job.JobId FROM Job "; +$query = "SELECT DISTINCT Media.Volumename, Media.Lastwritten, Media.VolStatus, Job.JobId FROM Job "; $query .= "LEFT JOIN JobMedia ON Job.JobId = JobMedia.JobId "; $query .= "LEFT JOIN Media ON JobMedia.MediaId = Media.MediaId "; $query .= "ORDER BY Job.JobId DESC "; -$query .= "LIMIT 15 "; +$query .= "LIMIT 10 "; $result = $dbSql->db_link->query( $query ); diff --git a/gui/bacula-web/style/default.css b/gui/bacula-web/style/default.css index e5a6220c0e..b5eda16823 100644 --- a/gui/bacula-web/style/default.css +++ b/gui/bacula-web/style/default.css @@ -136,7 +136,7 @@ a:link, a:visited, a:hover, a:visited { .box table tr td { - padding: 2px; + padding: 3px; font-size: 8pt; height: 20px; } diff --git a/gui/bacula-web/templates/index.tpl b/gui/bacula-web/templates/index.tpl index 94b26a3ac4..4347b4e3aa 100644 --- a/gui/bacula-web/templates/index.tpl +++ b/gui/bacula-web/templates/index.tpl @@ -98,12 +98,14 @@ Volume Status + Last written Job Id {foreach from=$volume_list item=vol} {$vol.Volumename} {$vol.VolStatus} + {$vol.Lastwritten} {$vol.JobId} {/foreach}