--- loncom/interface/lonnavdisplay.pm 2008/03/12 02:45:07 1.3 +++ loncom/interface/lonnavdisplay.pm 2009/05/19 13:56:07 1.12 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavdisplay.pm,v 1.3 2008/03/12 02:45:07 raeburn Exp $ +# $Id: lonnavdisplay.pm,v 1.12 2009/05/19 13:56:07 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -133,6 +133,7 @@ MENU if (!defined($navmap)) { my $requrl = $r->uri; $env{'user.error.msg'} = "$requrl:bre:0:0:Course not initialized"; + $env{'user.reinit'} = 1; return HTTP_NOT_ACCEPTABLE; } $r->send_http_header; @@ -154,12 +155,12 @@ MENU # Header my $course_type = &Apache::loncommon::course_type(); - $r->print(&Apache::loncommon::start_page('Navigate '.$course_type. - ' Contents', - $js, - {'only_body' => $body_only, - 'force_register' => - $env{'form.register'},})); + $r->print(&Apache::loncommon::start_page(#'Navigate '.$course_type. + 'Course Contents', + $js, + {'only_body' => $body_only, + 'force_register' => $env{'form.register'}, + 'bread_crumbs' => [{text => mt('Course Content') }],})); $r->print(''); $r->rflush(); @@ -255,7 +256,9 @@ MENU # If we found no problems, print a note to that effect. if (!$foundDoableProblem) { - $r->print("All homework assignments have been completed.

"); + $r->print("" + .&mt("All homework assignments have been completed.") + .""); } } else { &Apache::lonnavmaps::add_linkitem(\%toplinkitems,'firsthomework', @@ -278,7 +281,7 @@ MENU &Apache::lonnavmaps::add_linkitem(\%toplinkitems,'everything', 'location.href="navmaps?sort='.$env{'form.sort'}.'"', "Show everything"); - $r->print("

".&mt("Uncompleted Problems")."

"); + $r->print("".&mt("Uncompleted Problems").""); $env{'form.filter'} = ''; $env{'form.condition'} = 1; $resource_no_folder_link = 1; @@ -289,18 +292,18 @@ MENU "Show only uncompleted problems"); } - my %selected=($env{'form.sort'} => 'selected=on'); - my $sort_html=("
- + my %selected=($env{'form.sort'} => ' selected="selected"'); + my $sort_html=(" + - - + + + + - +
"); # renderer call my $renderArgs = { 'cols' => [0,1,2,3], @@ -321,9 +324,9 @@ MENU # user knows there was no error. if ($renderArgs->{'counter'} == 0) { if ($showOnlyHomework) { - $r->print("

".&mt("All homework is currently completed").".

"); + $r->print("

".&mt("All homework is currently completed.")."

"); } else { # both jumpToFirstHomework and normal use the same: course must be empty - $r->print("

This course is empty.

"); + $r->print("

".&mt("This course is empty.")."

"); } } #my $td=&tv_interval($t0);