--- loncom/interface/portfolio.pm 2008/12/05 10:23:56 1.200 +++ loncom/interface/portfolio.pm 2008/12/10 21:46:58 1.202 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.200 2008/12/05 10:23:56 bisitz Exp $ +# $Id: portfolio.pm,v 1.202 2008/12/10 21:46:58 kaisler Exp $ # # Copyright Michigan State University Board of Trustees # @@ -801,13 +801,13 @@ sub display_access { $info .= '
  • '.&mt('Passphrase-protected files do not require log-in, but will require the viewer to enter the passphrase you set.'); $info .= '
  • '.&explain_conditionals(); $info .= '
  • '. - &mt('A listing of files viewable without log-in is available at: ')."http://$ENV{'SERVER_NAME'}/adm/$udom/$uname/aboutme/portfolio.
    "; + &mt('A listing of files viewable without log-in is available at: ')."".&Apache::lonnet::absolute_url($ENV{'SERVER_NAME'})."/adm/$udom/$uname/aboutme/portfolio.
    "; if ($group eq '') { $info .= &mt("For logged in users a 'Display file listing' link will also appear (when there are viewable files) on your personal information page:"); } else { $info .= &mt("For logged in users a 'Display file listing' link will also appear (when there are viewable files) on the course information page:"); } - $info .= "
    http://$ENV{'SERVER_NAME'}/adm/$udom/$uname/aboutme
    "; + $info .= "
    ".&Apache::lonnet::absolute_url($ENV{'SERVER_NAME'})."/adm/$udom/$uname/aboutme
    "; if ($group ne '') { $info .= &mt("Users with privileges to edit course contents may add a course information page to a course using the 'Course Info' button in DOCS").'
    '; } @@ -2245,6 +2245,7 @@ sub handler { &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; # Give the LON-CAPA page header + my @brcrum = [{href=>"/adm/portfolio",text=>"Portfolio Manager"}]; if ($env{"form.mode"} eq 'selectfile'){ $r->print(&Apache::loncommon::start_page($title,undef, {'only_body' => 1})); @@ -2252,9 +2253,18 @@ sub handler { $r->print(&Apache::loncommon::start_page('New role-based condition',undef, {'no_nav_bar' => 1, })); } else { - $r->print(&Apache::loncommon::start_page($title)); + $r->print(&Apache::loncommon::start_page($title,undef,{bread_crumbs => @brcrum})); } $r->rflush(); + if (!&Apache::lonnet::usertools_access($uname,$udom,'portfolio')) { + $r->print('

    '.&mt('No user portfolio available') .'

    '. + &mt('This is a result of one of the following:').''); + $r->print(&Apache::loncommon::end_page()); + return OK; + } my ($blocked,$blocktext) = &Apache::loncommon::blocking_status('port',$uname,$udom); if ($blocked) {