'.
+ '';
+ # The last breadcrumb does not have a link, so handle it seperately.
+ my $last = pop(@Crumbs);
+ # The first one should be the course, I guess.
+ if (exists($ENV{'request.course.id'})) {
+ my $cid = $ENV{'request.course.id'};
+ unshift(@Crumbs,{href=>'/adm/menu',
+ title=>'Go to main menu',
+ text=>$ENV{'course.'.$cid.'.description'},
+ });
+ }
+ my $links .=
+ join('->',
+ map {
+ ''.
+ $_->{'text'}.''
+ } @Crumbs
+ );
+ $links .= '->' if ($links ne '');
+ $links .= ''.$last->{'text'}.'';
+ #
+ my $icons = '';
+ if (exists($last->{'faq'})) {
+ $icons .= &Apache::loncommon::help_open_faq($last->{'faq'});
+ }
+ if (exists($last->{'bug'})) {
+ $icons .= &Apache::loncommon::help_open_bug($last->{'bug'});
+ }
+ if ($icons ne '') {
+ $Str .= $icons.' ';
+ }
+ #
+ $Str .= $links.' | ';
+ #
+ if (defined($component)) {
+ $Str .= ''.
+ ''.$component.'';
+ if (defined($component_help)) {
+ $Str .=
+ &Apache::loncommon::help_open_topic($component_help);
+ }
+ $Str.= ' | ';
+ }
+ $Str .= '