From: Davide Franco Date: Mon, 29 Nov 2010 14:37:44 +0000 (+0100) Subject: bacula-web: Improved html and css code X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7da4fe77d02eadcbd72d8291400fa7f1757001b;p=bacula%2Fbacula bacula-web: Improved html and css code --- diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index cab265a5e8..e3591c2450 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -153,7 +153,7 @@ if ( $mode == "Lite" && $_GET['Full_popup'] == "yes" ) { switch( $dbSql->driver ) { case 'mysql': - $query = "SELECT JobId, Name, EndTime, JobStatus"; + $query = "SELECT JobId, Name, EndTime, JobStatus "; $query .= "FROM Job "; $query .= "WHERE EndTime <= NOW() and UNIX_TIMESTAMP(EndTime) > UNIX_TIMESTAMP(NOW())-86400 and JobStatus!='T'"; break; diff --git a/gui/bacula-web/style/default.css b/gui/bacula-web/style/default.css index 0462f3f64e..0a39e19472 100644 --- a/gui/bacula-web/style/default.css +++ b/gui/bacula-web/style/default.css @@ -93,8 +93,8 @@ body{ .box table { - margin-left: 5px; - margin-right: 5px; + width: 100%; + margin: 0px; } .box table tr td { @@ -105,6 +105,13 @@ body{ font-weight: bold; width: 150px; text-align: left; + padding-left: 3px; +} +.box table tr td.info +{ + text-align:right; + padding-right: 8em; + font-weight: bold; } table { diff --git a/gui/bacula-web/templates/index.tpl b/gui/bacula-web/templates/index.tpl index 9f70c4ab76..38bcd304e6 100644 --- a/gui/bacula-web/templates/index.tpl +++ b/gui/bacula-web/templates/index.tpl @@ -25,18 +25,18 @@

General informations

- +
- + - + - + - + --> -{if $mode == "Lite" && $smarty.get.Full_popup != "yes"} -
{t}Clients{/t} {$clientes_totales}{t}Clients{/t} {$clientes_totales}
{t}Total bytes stored{/t}: {$bytes_stored}{t}Total bytes stored{/t}: {$bytes_stored}
{t}Total files:{/t} {$files_totales}{t}Total files:{/t} {$files_totales} file(s)
{t}Database size{/t}: {$database_size}{t}Database size{/t}: {$database_size}
diff --git a/gui/bacula-web/templates/last_run_report.tpl b/gui/bacula-web/templates/last_run_report.tpl index 6d0c5c6758..bec4bb180a 100644 --- a/gui/bacula-web/templates/last_run_report.tpl +++ b/gui/bacula-web/templates/last_run_report.tpl @@ -10,50 +10,28 @@
+{* {if $mode == "Lite" && $smarty.get.Full_popup != "yes"} *} +
- - + - - - + - - + - - - + -
- {t}Errors:{/t} - - {$status} - Failed jobs {$jobserror}
- {t}Terminated Jobs:{/t} - - {$total_jobs} - Completed jobs {$total_jobs}
- {t}Total time spent to do backup:{/t} - - {$TotalElapsed} - Backup elapsed time {$totalElapsed}
- {t}Bytes transferred last 24h{/t} - - {$bytes_totales} - Transferred bytes {$bytes_totales}
{t}Show details{/t}
+ - {if $status != 0} +{* {if $status != 0} *}
@@ -128,7 +106,7 @@
- {/if} + {* {/if} *}
@@ -159,7 +137,7 @@ -{else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} +{* {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} *} @@ -196,7 +174,7 @@
{t}Elapsed time{/t}
-{/if} +{* {/if} *}
\ No newline at end of file diff --git a/gui/bacula-web/templates/volumes.tpl b/gui/bacula-web/templates/volumes.tpl index 2b4a1298e8..7e79c8ee35 100644 --- a/gui/bacula-web/templates/volumes.tpl +++ b/gui/bacula-web/templates/volumes.tpl @@ -3,7 +3,7 @@

Pools

- +
{foreach from=$pools item=pool key=pool_name}