--- loncom/interface/spreadsheet/lonspreadsheet.pm 2003/11/11 20:27:15 1.29 +++ loncom/interface/spreadsheet/lonspreadsheet.pm 2004/02/20 17:17:32 1.33 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.29 2003/11/11 20:27:15 albertel Exp $ +# $Id: lonspreadsheet.pm,v 1.33 2004/02/20 17:17:32 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -227,9 +227,12 @@ sub handler { } my $courseid = $ENV{'request.course.id'}; # - # Do not allow students to continue if standard grading is in effect. + # Do not allow students to continue if standard or external grading is in + # effect. + # if ($ENV{'request.role'} =~ /^st\./) { - if ($ENV{'course.'.$courseid.'.grading'} eq 'standard') { + if ($ENV{'course.'.$courseid.'.grading'} eq 'standard' || + $ENV{'course.'.$courseid.'.grading'} eq 'external' ) { return HTTP_NOT_ACCEPTABLE; } } @@ -362,7 +365,15 @@ sub handler { ENDSCRIPT } + &Apache::lonhtmlcommon::clear_breadcrumbs(); + &Apache::lonhtmlcommon::add_breadcrumb + ({href => $r->uri, + title => &mt('Spreadsheet'), + text => &mt('Spreadsheet'), + faq => 134, + bug => 'Spreadsheet'}); $r->print(''.&Apache::loncommon::bodytag('Grades Spreadsheet'). + &Apache::lonhtmlcommon::breadcrumbs(undef,&mt('Spreadsheet')). '