[Bio] / RAST / rast.cgi Repository:
ViewVC logotype

Diff of /RAST/rast.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7, Thu Oct 16 22:30:43 2008 UTC revision 1.8, Thu Nov 20 15:42:20 2008 UTC
# Line 12  Line 12 
12    
13  # choose a layout  # choose a layout
14  my $layout = WebLayout->new("$FIG_Config::fig/CGI/Html/RAST.tmpl");  my $layout = WebLayout->new("$FIG_Config::fig/CGI/Html/RAST.tmpl");
 if ($WebConfig::RAST_TYPE eq 'metagenome') {  
     $layout = WebLayout->new('./Html/RAST-MG.tmpl');  
 }  
15  $layout->add_css(TMPL_URL_PATH.'/default.css');  $layout->add_css(TMPL_URL_PATH.'/default.css');
16  $layout->add_css(TMPL_URL_PATH.'/rast.css');  $layout->add_css(TMPL_URL_PATH.'/rast.css');
17    
# Line 27  Line 24 
24  # create the menu  # create the menu
25  my $menu = WebMenu->new();  my $menu = WebMenu->new();
26    
 if ($WebConfig::RAST_TYPE eq 'metagenome') {  
     $menu->add_category('Home', 'metagenomics.cgi', undef, [ 'login' ]);  
 } else {  
27      $menu->add_category('Home', 'rast.cgi', undef, [ 'login' ]);      $menu->add_category('Home', 'rast.cgi', undef, [ 'login' ]);
 }  
   
28  $menu->add_category('Your Jobs', 'rast.cgi?page=Jobs', undef, [ 'login' ]);  $menu->add_category('Your Jobs', 'rast.cgi?page=Jobs', undef, [ 'login' ]);
29  $menu->add_entry('Your Jobs', 'Jobs Overview', 'rast.cgi?page=Jobs');  $menu->add_entry('Your Jobs', 'Jobs Overview', 'rast.cgi?page=Jobs');
30  $menu->add_entry('Your Jobs', 'Upload New Job', 'rast.cgi?page=Upload');  $menu->add_entry('Your Jobs', 'Upload New Job', 'rast.cgi?page=Upload');
31    $menu->add_entry('Your Jobs', 'Private Organism Preferences', '?page=PrivateOrganismPreferences');
32  $menu->add_category('Import Control', 'rast.cgi?page=ControlCenter', undef, [ 'import' ]);  $menu->add_category('Import Control', 'rast.cgi?page=ControlCenter', undef, [ 'import' ]);
33    
34    
# Line 46  Line 39 
39                                      default  => 'Home',                                      default  => 'Home',
40                                    } );                                    } );
41    
 if ($WebConfig::RAST_TYPE eq 'metagenome') {  
     $WebApp->page_title_prefix('MG-RAST - ');  
 } else {  
42      $WebApp->page_title_prefix('RAST Server - ');      $WebApp->page_title_prefix('RAST Server - ');
 }  
43    
44  $WebApp->run();  $WebApp->run();

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3