From: Rob H. <for...@us...> - 2002-02-22 08:53:39
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv21866/bin Modified Files: sandweb.cgi Log Message: ack, tool_bar is not nearly generic enough for this. took some steps to make it more generic, but realized that header and footer settings should be UI's job. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.201 retrieving revision 1.202 diff -U2 -r1.201 -r1.202 --- sandweb.cgi 22 Feb 2002 08:38:58 -0000 1.201 +++ sandweb.cgi 22 Feb 2002 08:53:36 -0000 1.202 @@ -490,4 +490,11 @@ # use the browse object to show user's sandbox + my $browse_module_header = $ui->get_menu( + MENU => 'browse_module_header', + MODULE_NAME => $module_name, + REPO_NAME => $repo_name, + LOCATION => $location, + ); + my $toolbar = $browse->get_tool_bar( 'location' => $location, @@ -509,5 +516,9 @@ ); - my $content = "$toolbar $current_location $browser"; + my $browse_module_footer = $ui->get_menu( + MENU => 'browse_module_footer', + ); + + my $content = "$browse_module_header $toolbar $current_location $browser $browse_module_footer"; print CGI::header( -cookie => $ck_auth ); @@ -945,10 +956,4 @@ ); - my $tool_bar = $browse->get_tool_bar( - 'location' => $location, - 'progname' => $progname, - 'repo_name' => $repo_name, - ); - my $current_location = $browse->get_current_location( 'location' => $location, @@ -971,5 +976,5 @@ ); - my $content = "$tool_bar $current_location $menu"; + my $content = "$current_location $menu"; print CGI::header( -cookie => $ck_auth ); |