[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn@source.lon-capa.org
Fri, 16 Oct 2009 00:46:01 -0000
raeburn Fri Oct 16 00:46:01 2009 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- Bug 6088.
- Omit ellipsis if resource is in top level sequence in course.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.288 loncom/interface/lonmenu.pm:1.289
--- loncom/interface/lonmenu.pm:1.288 Thu Oct 15 21:02:13 2009
+++ loncom/interface/lonmenu.pm Fri Oct 16 00:46:01 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.288 2009/10/15 21:02:13 raeburn Exp $
+# $Id: lonmenu.pm,v 1.289 2009/10/16 00:46:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -529,10 +529,13 @@
my $maptitle = &Apache::lonnet::gettitle($mapurl);
my $restitle = &Apache::lonnet::gettitle(&Apache::lonnet::symbread());
- my @crumbs = ({text => "Course Content",
- href => "Javascript:gonav('/adm/navmaps')"},
- {text => '...',
- no_mt => 1});
+ my @crumbs = ({text => "Course Contents",
+ href => "Javascript:gonav('/adm/navmaps')"});
+
+ if ($mapurl ne $env{'course.'.$env{'request.course.id'}.'.url'}) {
+ push(@crumbs, {text => '...',
+ no_mt => 1});
+ }
push @crumbs, {text => $maptitle, no_mt => 1} if ($maptitle
&& $maptitle ne 'default.sequence'