X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FDirHistory.pm;h=728068fe3e0021118efd34a21538bd82ab6830ff;hp=a1b2d2d1ff4b774cd15c02e403f5669998bd851a;hb=a7e968ce327855f2ba2624ca8517069a936c9b5b;hpb=5729095faa3ef12dc5d4f02538c3650ac81912ef;ds=sidebyside diff --git a/lib/BackupPC/CGI/DirHistory.pm b/lib/BackupPC/CGI/DirHistory.pm index a1b2d2d..728068f 100644 --- a/lib/BackupPC/CGI/DirHistory.pm +++ b/lib/BackupPC/CGI/DirHistory.pm @@ -84,8 +84,9 @@ sub action my %inode2name; my $nameCnt = 0; (my $fDisp = "${EscHTML($f)}") =~ s/ / /g; - $fileStr .= "$fDisp"; - my($colSpan, $url, $inode, $type, $tdColor); + $fileStr .= "$fDisp"; + my($colSpan, $url, $inode, $type); + my $tdClass = ' class="histView"'; for ( $i = 0 ; $i < @Backups ; $i++ ) { my($path); if ( $colSpan > 0 ) { @@ -109,16 +110,16 @@ sub action $colSpan++; next; } - $fileStr .= "" + $fileStr .= "" . "$url"; $colSpan = 0; - $tdColor = ""; + $tdClass = ' class="histView"'; } if ( !defined($hist->{$f}[$i]) ) { $colSpan = 1; $url = " "; $inode = -3; # special value for missing - $tdColor = ' bgcolor="#ffffaa"'; + $tdClass = ' class="histViewMis"'; next; } if ( $dir eq "" ) { @@ -154,7 +155,7 @@ EOF $colSpan = 1; } if ( $colSpan > 0 ) { - $fileStr .= "$url"; + $fileStr .= "$url"; $colSpan = 0; } $fileStr .= "\n"; @@ -164,11 +165,8 @@ EOF $dirDisplay =~ s{//+}{/}g; $dirDisplay =~ s{/+$}{}g; $dirDisplay = "/" if ( $dirDisplay eq "" ); - - Header(eval("qq{$Lang->{DirHistory_backup_for__host}}")); - - print (eval("qq{$Lang->{DirHistory_for__host}}")); - + my $content = eval("qq{$Lang->{DirHistory_for__host}}"); + Header(eval("qq{$Lang->{DirHistory_backup_for__host}}"), $content); Trailer(); }