--- loncom/interface/lonnavdisplay.pm 2009/02/26 16:17:30 1.6
+++ loncom/interface/lonnavdisplay.pm 2009/09/08 20:56:47 1.13
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavdisplay.pm,v 1.6 2009/02/26 16:17:30 schafran Exp $
+# $Id: lonnavdisplay.pm,v 1.13 2009/09/08 20:56:47 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -155,12 +155,19 @@ MENU
# Header
my $course_type = &Apache::loncommon::course_type();
- $r->print(&Apache::loncommon::start_page(#'Navigate '.$course_type.
- 'Course Contents',
- $js,
- {'only_body' => $body_only,
- 'force_register' =>
- $env{'form.register'},}));
+ my ($title,$breadcrumb_text);
+ if ($course_type eq 'Community') {
+ $title = 'Community Contents';
+ $breadcrumb_text = &mt('Community Contents');
+ } else {
+ $title = 'Course Contents';
+ $breadcrumb_text = &mt('Course Contents');
+ }
+ $r->print(&Apache::loncommon::start_page($title,
+ $js,
+ {'only_body' => $body_only,
+ 'force_register' => $env{'form.register'},
+ 'bread_crumbs' => [{text => $breadcrumb_text }],}));
$r->print('');
$r->rflush();
@@ -256,9 +263,9 @@ MENU
# If we found no problems, print a note to that effect.
if (!$foundDoableProblem) {
- $r->print(""
+ $r->print(""
.&mt("All homework assignments have been completed.")
- ."
");
+ ."");
}
} else {
&Apache::lonnavmaps::add_linkitem(\%toplinkitems,'firsthomework',
@@ -281,7 +288,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; @@ -292,18 +299,18 @@ MENU "Show only uncompleted problems"); } - my %selected=($env{'form.sort'} => 'selected=on'); - my $sort_html=(""); # renderer call my $renderArgs = { 'cols' => [0,1,2,3], @@ -324,9 +331,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("".&mt("This course is empty.")."
"); + $r->print("".&mt("This course is empty.")."
"); } } #my $td=&tv_interval($t0);