From 07bb8bacec9aad4e8e0e38569491385e273249f8 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 19 Aug 2009 12:06:38 +0200 Subject: [PATCH] bweb: Add fullname option to btime for regress testing purpose --- gui/bweb/cgi/btime.pl | 3 ++- gui/bweb/lang/en/tpl/btime.tpl | 3 +++ gui/bweb/lang/es/tpl/btime.tpl | 9 ++++++--- gui/bweb/lang/fr/tpl/btime.tpl | 9 ++++++--- gui/bweb/lib/Bweb.pm | 2 +- gui/bweb/tpl/btime.tpl | 3 +++ gui/bweb/tpl/config_edit.tpl | 4 ++-- 7 files changed, 23 insertions(+), 10 deletions(-) diff --git a/gui/bweb/cgi/btime.pl b/gui/bweb/cgi/btime.pl index 215632bb13..d84da26f81 100755 --- a/gui/bweb/cgi/btime.pl +++ b/gui/bweb/cgi/btime.pl @@ -64,7 +64,8 @@ use Digest::MD5 qw(md5_hex); my $md5_rep = md5_hex("$arg->{qiso_begin}:$arg->{qiso_end}:$arg->{qusage}:" . "$arg->{jclient_groups}:$arg->{qpoolusage};$arg->{qnojob}") ; -if ( !$arg->{qnocache} +if ( 0 + && !$arg->{qnocache} && $arg->{qiso_begin} && -f "$conf->{fv_write_path}/$md5_rep.png") { diff --git a/gui/bweb/lang/en/tpl/btime.tpl b/gui/bweb/lang/en/tpl/btime.tpl index e52b3102a9..194e917e2e 100644 --- a/gui/bweb/lang/en/tpl/btime.tpl +++ b/gui/bweb/lang/en/tpl/btime.tpl @@ -42,6 +42,9 @@ checked name="bypool"> Order by Pool
+ checked + name="fullname"> Use Job name
diff --git a/gui/bweb/lang/es/tpl/btime.tpl b/gui/bweb/lang/es/tpl/btime.tpl index 74272db948..ba8f5feb13 100644 --- a/gui/bweb/lang/es/tpl/btime.tpl +++ b/gui/bweb/lang/es/tpl/btime.tpl @@ -42,6 +42,9 @@ checked name="bypool"> Order by Pool
+ checked + name="fullname"> Use Job name
@@ -92,12 +95,12 @@

Tiempo

-

Tamaño

+

Tamaño

Ancho:  
Alto: checked
name="bypool"> Order by Pool
+ checked + name="fullname"> Use Job name
@@ -57,7 +60,7 @@ -

Pools de média

+

Pools de média

@@ -139,7 +142,7 @@ Current  
- Rien n a afficher, essayer avec une autre période + Rien n a afficher, essayer avec une autre période
diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index d0be07ebc9..b0e19f8efb 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -1279,7 +1279,7 @@ use base q/Bweb::Gui/; use DBI; use POSIX qw/strftime/; -our $config_file='/etc/bacula/bweb.conf'; +our $config_file='./bweb/bweb.conf'; our $cur_id=0; =head1 VARIABLE diff --git a/gui/bweb/tpl/btime.tpl b/gui/bweb/tpl/btime.tpl index 040293e468..a08c9c9913 100644 --- a/gui/bweb/tpl/btime.tpl +++ b/gui/bweb/tpl/btime.tpl @@ -42,6 +42,9 @@ checked
name="bypool"> __Order by Pool__
+ checked
+ name="fullname"> __Use Job name__
diff --git a/gui/bweb/tpl/config_edit.tpl b/gui/bweb/tpl/config_edit.tpl index 773bf8b5c9..b8a8bbc60c 100644 --- a/gui/bweb/tpl/config_edit.tpl +++ b/gui/bweb/tpl/config_edit.tpl @@ -10,7 +10,7 @@ __DBI:__ @@ -77,4 +77,4 @@ title='DBI:Pg:database=bacula;host=yourhost or DBI:Mysql:database=bacula or. document.getElementById('lang_').selected = true; - \ No newline at end of file + -- 2.39.5