From 0791bbdf5015afea020b37d86ec8303a3cfd2d03 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 3 Apr 2008 08:54:12 +0000 Subject: [PATCH] ebl Tweak progress bar and add Backuped files count to job status ebl Add group stats git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6731 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/cgi/bweb.pl | 15 ++++++++++++-- gui/bweb/lang/en/tpl/client_job_status.tpl | 3 +++ gui/bweb/lang/en/tpl/display_form_job.tpl | 8 +++++++- gui/bweb/lang/en/tpl/display_stats.tpl | 1 - gui/bweb/lang/es/tpl/client_job_status.tpl | 3 +++ gui/bweb/lang/es/tpl/display_form_job.tpl | 21 +++++++++++-------- gui/bweb/lang/fr/tpl/client_job_status.tpl | 5 ++++- gui/bweb/lang/fr/tpl/display_form_job.tpl | 21 +++++++++++-------- gui/bweb/lib/Bweb.pm | 24 +++++++++++++++++++++- gui/bweb/technotes-2.3 | 3 +++ gui/bweb/tpl/client_job_status.tpl | 3 +++ gui/bweb/tpl/display_form_job.tpl | 4 +++- gui/bweb/tpl/display_stats.tpl | 1 - 13 files changed, 88 insertions(+), 24 deletions(-) diff --git a/gui/bweb/cgi/bweb.pl b/gui/bweb/cgi/bweb.pl index 1f0eab14e4..a6a14f6c62 100755 --- a/gui/bweb/cgi/bweb.pl +++ b/gui/bweb/cgi/bweb.pl @@ -379,10 +379,21 @@ if ($action eq 'begin') { # main display } } } elsif ($action eq 'group_stats') { + $bweb->can_do('r_view_stat'); + print "
\n"; + my $fields = $bweb->get_form(qw/since age + db_client_groups qclient_groups/); # drop this to hide + $fields->{action}='group_stats'; + $fields->{hide_level}=1; + $fields->{hide_type}=1; + $fields->{hide_status}=1; + + $bweb->display($fields, "display_form_job.tpl"); + + print ""; $bweb->display_group_stats(); -} elsif ($action eq 'group_stats') { - $bweb->display_group_stats(age => $arg->{age}); + print "
" } elsif ($action eq 'running') { $bweb->display_running_jobs(1); diff --git a/gui/bweb/lang/en/tpl/client_job_status.tpl b/gui/bweb/lang/en/tpl/client_job_status.tpl index f87a3fa102..e3b6e71af3 100644 --- a/gui/bweb/lang/en/tpl/client_job_status.tpl +++ b/gui/bweb/lang/en/tpl/client_job_status.tpl @@ -19,6 +19,9 @@ Files Examined: + + Files Backuped: + Bytes: diff --git a/gui/bweb/lang/en/tpl/display_form_job.tpl b/gui/bweb/lang/en/tpl/display_form_job.tpl index 21dcf24f0e..f0f11e320b 100644 --- a/gui/bweb/lang/en/tpl/display_form_job.tpl +++ b/gui/bweb/lang/en/tpl/display_form_job.tpl @@ -5,6 +5,7 @@
+ + @@ -55,6 +57,8 @@ + + + diff --git a/gui/bweb/lang/es/tpl/display_form_job.tpl b/gui/bweb/lang/es/tpl/display_form_job.tpl index 8d1143a284..1b1ff2619f 100644 --- a/gui/bweb/lang/es/tpl/display_form_job.tpl +++ b/gui/bweb/lang/es/tpl/display_form_job.tpl @@ -1,10 +1,10 @@ -
Filter  

Level

@@ -16,6 +17,7 @@
@@ -47,7 +49,7 @@

Since

-

Age

Age

Archivos Examinados:
Files Backuped:
Bytes:
+ + @@ -55,9 +56,11 @@ @@ -66,9 +69,11 @@ @@ -87,7 +92,7 @@ @@ -99,7 +104,7 @@ diff --git a/gui/bweb/lang/fr/tpl/client_job_status.tpl b/gui/bweb/lang/fr/tpl/client_job_status.tpl index 65c3e334c8..6c4b7b58b4 100644 --- a/gui/bweb/lang/fr/tpl/client_job_status.tpl +++ b/gui/bweb/lang/fr/tpl/client_job_status.tpl @@ -19,6 +19,9 @@ + + + @@ -35,7 +38,7 @@

Nivel

@@ -16,6 +16,7 @@
@@ -47,7 +48,7 @@

Tiempo

-

Tiempo

Tiempo

-

Número de items

+

Número de items

Fichiers vus :
Files Backuped:
Taille :
+> Rafraîchir