--- loncom/interface/lonaboutme.pm 2007/05/23 21:44:11 1.63 +++ loncom/interface/lonaboutme.pm 2008/01/20 03:27:16 1.68 @@ -1,7 +1,7 @@ # The LearningOnline Network # "About Me" Personal Information # -# $Id: lonaboutme.pm,v 1.63 2007/05/23 21:44:11 albertel Exp $ +# $Id: lonaboutme.pm,v 1.68 2008/01/20 03:27:16 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -114,8 +114,9 @@ sub handler { # --------------------------------------- There is such a user, get environment my %courseenv=&Apache::lonnet::dump('environment',$cdom,$cnum); if ($target ne 'tex') { + my $rss_link = &Apache::lonrss::rss_link($cnum,$cdom); my $start_page = - &Apache::loncommon::start_page("Personal Information",undef, + &Apache::loncommon::start_page("Personal Information", $rss_link, {'function' => $forcestudent, 'domain' => $cdom, 'force_register' => @@ -132,7 +133,7 @@ sub handler { } if ($target ne 'tex') { $r->print('

'.&Apache::lonnet::domain($cdom,'description').'

'. - '

'.&Apache::loncommon::messagewrapper('Send me a message',$cnum,$cdom).'

'.&Apache::lonrss::advertisefeeds($cnum,$cdom)); + '

'.&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom).'

'.&Apache::lonrss::advertisefeeds($cnum,$cdom)); } else { $r->print('\textbf{'.&Apache::lonnet::domain($cdom,'description').'}\\\\'); } @@ -150,7 +151,7 @@ sub handler { $r->print('

'.&mt('Privacy Note').': '. &mt('The information you submit can be viewed by anybody who is logged into LON-CAPA. Do not provide information that you are not ready to share publicly.'). '

'. - &Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'

Show Public View'. + &Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')).'

'.&mt('Show Public View').''. &Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'

'); } elsif ($privleged && $target ne 'tex') { my $query_string = &build_query_string({'forceedit' => '1',}); @@ -206,12 +207,12 @@ sub handler { if ($allowed) { $r->print( '
- +
'. '
'. '

'.&mt('Upload a Photo').'

'. - ''. - ''. + ''. + ''. '
'); } @@ -327,7 +328,8 @@ sub aboutme_info { sub print_portfiles_link { my ($r,$is_course) = @_; my ($cdom,$cnum,$name) = &aboutme_info($r,$is_course); - my $filecounts = &portfolio_files($r,'showlink',undef,$is_course); + my $filecounts = &portfolio_files($r,'showlink',undef,$is_course, + $cdom,$cnum,$name); my $query_string = &build_query_string(); my $output; my %lt = &Apache::lonlocal::texthash( @@ -459,7 +461,8 @@ sub display_portfolio_files { &mt('Update display').'" />'; $output .= '


'; $r->print($output); - my $filecounts = &portfolio_files($r,'listfiles',\%lt,$is_course); + my $filecounts = &portfolio_files($r,'listfiles',\%lt,$is_course, + $cdom,$cnum,$name); if (!($env{'user.name'} eq 'public' && $env{'user.domain'} eq 'public')) { my $query_string = &build_query_string(); $r->print('