--- loncom/interface/lonhtmlcommon.pm 2004/05/05 14:12:54 1.68
+++ loncom/interface/lonhtmlcommon.pm 2004/05/06 17:54:11 1.69
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.68 2004/05/05 14:12:54 matthew Exp $
+# $Id: lonhtmlcommon.pm,v 1.69 2004/05/06 17:54:11 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -980,9 +980,10 @@ returns: nothing
if ($menulink && exists($ENV{'request.course.id'}) && $ENV{'request.course.id'} ne '') {
my $cid = $ENV{'request.course.id'};
unshift(@Crumbs,{
- href=>'/adm/menu',
- title=>'Go to main menu',
- text=>$ENV{'course.'.$cid.'.description'},
+ href =>'/adm/menu',
+ title =>'Go to main menu',
+ target =>'_top',
+ text =>$ENV{'course.'.$cid.'.description'},
});
}
my $links .=
@@ -990,8 +991,13 @@ returns: nothing
map {
$faq = $_->{'faq'} if (exists($_->{'faq'}));
$bug = $_->{'bug'} if (exists($_->{'bug'}));
- ''.
- &mt($_->{'text'}).''
+ my $result = '{'target'}) && $_->{'target'} ne '') {
+ $result .= 'target="'.$_->{'target'}.'" ';
+ }
+ $result .='title="'.&mt($_->{'title'}).'">'.
+ &mt($_->{'text'}).'';
+ $result;
} @Crumbs
);
$links .= '->' if ($links ne '');