From 055710823622907641d145df5255e474eabceaf6 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Tue, 7 Dec 2010 11:46:05 +0100 Subject: [PATCH] bacula-web: Removed pools and volumes list from main layout - New pools.php script - Renammed volumes.tpl to pools.tpl - Modified css attributes for main layout --- gui/bacula-web/index.php | 2 +- gui/bacula-web/pools.php | 23 ++++++++++++++++ gui/bacula-web/style/default.css | 6 ++--- gui/bacula-web/templates/index.tpl | 3 ++- .../templates/{volumes.tpl => pools.tpl} | 27 ++++++++++++++++++- 5 files changed, 55 insertions(+), 6 deletions(-) rename gui/bacula-web/templates/{volumes.tpl => pools.tpl} (58%) diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 93a130edff..8265f91350 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -125,7 +125,7 @@ $smarty->assign('clientes_totales',$nb_clients["nb_client"] ); $smarty->assign( 'total_name_jobs', $dbSql->Get_BackupJob_Names() ); // Get volumes list (volumes.tpl) -$smarty->assign('pools',$dbSql->GetVolumeList() ); +$smarty->assign('pools', $dbSql->GetVolumeList() ); // Last 24 hours completed jobs number (last_run_report.tpl) $completed_jobs = $dbSql->GetLastJobs(); diff --git a/gui/bacula-web/pools.php b/gui/bacula-web/pools.php index 62a2de0c86..2583902662 100644 --- a/gui/bacula-web/pools.php +++ b/gui/bacula-web/pools.php @@ -1,3 +1,26 @@ compile_check = true; + $smarty->debugging = false; + $smarty->force_compile = true; + + $smarty->template_dir = "./templates"; + $smarty->compile_dir = "./templates_c"; + $smarty->config_dir = "./configs"; + + // Get volumes list (pools.tpl) + $smarty->assign('pools',$dbSql->GetVolumeList() ); + + $smarty->display('pools.tpl'); ?> diff --git a/gui/bacula-web/style/default.css b/gui/bacula-web/style/default.css index 85762b5b38..c25bbe0c46 100644 --- a/gui/bacula-web/style/default.css +++ b/gui/bacula-web/style/default.css @@ -74,7 +74,7 @@ a:hover { color: #736F6E } left:10px; width: 500px; border:none; - margin-top: 1em; + margin-top: 0px; background-color: #FFFFFF; } @@ -83,7 +83,7 @@ a:hover { color: #736F6E } left:520px; width: 500px; border: none; - margin-top: 1em; + margin-top: 0px; } #main_center { @@ -91,7 +91,7 @@ a:hover { color: #736F6E } left:10px; width: 900px; /*border: 1px solid red; */ - margin-top: 1em; + margin-top: 0px; } .box { diff --git a/gui/bacula-web/templates/index.tpl b/gui/bacula-web/templates/index.tpl index 40e2681d92..d144e40069 100644 --- a/gui/bacula-web/templates/index.tpl +++ b/gui/bacula-web/templates/index.tpl @@ -43,7 +43,8 @@ - {include file=volumes.tpl} +{* {include file=volumes.tpl}*} + diff --git a/gui/bacula-web/templates/volumes.tpl b/gui/bacula-web/templates/pools.tpl similarity index 58% rename from gui/bacula-web/templates/volumes.tpl rename to gui/bacula-web/templates/pools.tpl index 3ed7555ba6..75d655215d 100644 --- a/gui/bacula-web/templates/volumes.tpl +++ b/gui/bacula-web/templates/pools.tpl @@ -1,5 +1,27 @@ - + + + +bacula-web + +{literal} + +{/literal} + + +{popup_init src='./external_packages/js/overlib.js'} +{include file=header.tpl} + + + +

Pools

@@ -37,5 +59,8 @@
+
+ +{include file="footer.tpl"} -- 2.39.5