From fd46a71f1c97f36abd3f8415875f1b36ce48afd1 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 22 Sep 2008 15:14:12 +0000 Subject: [PATCH] ebl Add an option to bgraph that shows each levels as different source git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7621 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/cgi/bgraph.pl | 7 +++++-- gui/bweb/technotes-2.3 | 2 ++ gui/bweb/tpl/graph.tpl | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gui/bweb/cgi/bgraph.pl b/gui/bweb/cgi/bgraph.pl index e232e5fdd2..6389b1c2f2 100755 --- a/gui/bweb/cgi/bgraph.pl +++ b/gui/bweb/cgi/bgraph.pl @@ -79,7 +79,7 @@ if ($arg->{status} and $arg->{status} ne 'Any') { } my $levelq=''; -if ($arg->{level} and $arg->{level} ne 'Any') { +if ($arg->{level} and $arg->{level} !~ 'All|Any') { $levelq = " AND Job.Level = '$arg->{level}' "; } @@ -232,9 +232,12 @@ sub make_tab my $ret = {}; foreach my $row (@$all_row) { - # Todo, add Level to label if option is set ->[4] my $label = $row->[1] . "/" . $row->[2] ; # client/backup name + if ($arg->{level} eq 'All') { # can separate level + $label = $row->[4] . ': ' . $label; # if users ask for + } + $ret->{date}->[$i] = $row->[0]; $ret->{$label}->[$i] = $row->[3]; $i++; diff --git a/gui/bweb/technotes-2.3 b/gui/bweb/technotes-2.3 index d61e392ae0..d56c2e0168 100644 --- a/gui/bweb/technotes-2.3 +++ b/gui/bweb/technotes-2.3 @@ -1,3 +1,5 @@ +22Sep08 +ebl Add an option to bgraph that shows each levels as different source 21Sep08 ebl bfileview: diff --git a/gui/bweb/tpl/graph.tpl b/gui/bweb/tpl/graph.tpl index 47efd7e611..f86a2b470c 100644 --- a/gui/bweb/tpl/graph.tpl +++ b/gui/bweb/tpl/graph.tpl @@ -15,7 +15,8 @@

__Level__