--- loncom/interface/lonviewclasslist.pm 2023/09/26 19:11:02 1.19 +++ loncom/interface/lonviewclasslist.pm 2023/09/27 14:52:27 1.20 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to display the classlist # -# $Id: lonviewclasslist.pm,v 1.19 2023/09/26 19:11:02 raeburn Exp $ +# $Id: lonviewclasslist.pm,v 1.20 2023/09/27 14:52:27 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -62,7 +62,8 @@ sub handler { return OK; } &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, - ['register','forceedit','action','symb','todocs']); + ['register','forceedit','action', + 'symb','todocs','only_body']); if (! ($env{'request.course.fn'})) { $env{'user.error.msg'}= "/adm/viewclasslist:not in course role"; @@ -76,10 +77,16 @@ sub handler { $start_page = &Apache::loncommon::start_page('Classlist',undef, {'force_register' => $env{'form.register'}}); } else { - my $brcrum = [{'href' => 'adm/viewclasslist', - 'text' => 'View Classlist'},]; + my $args = {}; + if ($env{'form.only_body'}) { + $args->{'only_body'} = 1; + } else { + my $brcrum = [{'href' => 'adm/viewclasslist', + 'text' => 'View Classlist'},]; + $args->{'bread_crumbs'} = $brcrum; + } $start_page = &Apache::loncommon::start_page('Classlist',undef, - {'bread_crumbs' => $brcrum}); + $args); } $r->print(<