--- loncom/interface/loncommon.pm 2004/07/19 17:50:53 1.200
+++ loncom/interface/loncommon.pm 2004/08/24 22:47:58 1.206
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.200 2004/07/19 17:50:53 matthew Exp $
+# $Id: loncommon.pm,v 1.206 2004/08/24 22:47:58 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -650,7 +650,7 @@ sub help_open_menu {
$width = 620 if (not defined $width);
$height = 600 if (not defined $height);
my $link='';
- my $title = &mt('Choose your help');
+ my $title = &mt('Get help');
my $origurl = $ENV{'REQUEST_URI'};
my $timestamp = time;
foreach (\$color,\$function,\$topic,\$component_help,\$faq,\$bug,\$origurl) {
@@ -688,8 +688,21 @@ function helpMenu(caller) {
}
}
-
+
ENDTEMPLATE
+ if ($component_help) {
+ if (!$text) {
+ $template=&help_open_topic($component_help,undef,$stayOnPage,
+ $width,$height).' '.$template;
+ } else {
+ my $help_text;
+ $help_text=&Apache::lonnet::unescape($topic);
+ $template='
'.
+ &help_open_topic($component_help,$help_text,$stayOnPage,
+ $width,$height).' | '.$template.
+ ' |
';
+ }
+ }
if ($text ne '') { $template.='' };
return $template;
}
@@ -1804,7 +1817,7 @@ sub noteswrapper {
sub aboutmewrapper {
my ($link,$username,$domain,$target)=@_;
- return ''.$link.'';
}
@@ -2510,10 +2523,26 @@ END
'LON-CAPA: '.$title.'
';
} elsif ($ENV{'environment.remote'} eq 'off') {
# No Remote
+ my $roleinfo=(<
+
+
+ $ENV{'environment.firstname'}
+ $ENV{'environment.middlename'}
+ $ENV{'environment.lastname'}
+ $ENV{'environment.generation'}
+
+
+$role
+
+$realm
+
+
+ENDROLE
return $bodytag.&Apache::lonmenu::menubuttons($forcereg,'web',
$forcereg).
- '';
+ ''.$title.
+' | '.$roleinfo.'
';
}
#
@@ -2543,7 +2572,7 @@ $upperleft
$realm |
-
+
ENDBODY
}