--- loncom/interface/portfolio.pm 2008/06/09 22:34:55 1.194 +++ loncom/interface/portfolio.pm 2008/12/12 15:38:53 1.196.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.194 2008/06/09 22:34:55 raeburn Exp $ +# $Id: portfolio.pm,v 1.196.2.1 2008/12/12 15:38:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -103,6 +103,17 @@ sub display_common { # FIXME: This line should be deleted once Portfolio uses breadcrumbs $r->print(&Apache::loncommon::help_open_topic('Portfolio About', &mt('Help on the portfolio'))); + my $parse_check; + if (!&suppress_embed_prompt()) { + $parse_check = <<"END"; +
+ + + +END + } $r->print(<<"TABLE"); @@ -117,13 +128,9 @@ sub display_common { - $help_fileupload -
- - - + +$help_fileupload +$parse_check @@ -220,7 +227,7 @@ sub display_directory_line { $r->print(''); $r->print(''); if ($select_mode ne 'true') { - $r->print('
'.$size.''.&Apache::lonlocal::locallocaltime($mtime).''. + $r->print(''. &mt($curr_access).'   '); my %anchor_fields = ( 'access' => $filename, @@ -458,7 +465,7 @@ sub display_directory { $r->print('
'); if ($can_delete) { $r->print(' - '. + '. &Apache::loncommon::help_open_topic('Portfolio DeleteFile').' @@ -768,13 +775,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").'
    '; } @@ -1467,7 +1474,7 @@ sub course_row { } $max_id ++; my $role_selects = &role_selectors($num,$role_id,$type,$content,'display'); - $r->print('
    '.$role_selects.''); + $r->print('
    '.$role_selects.''); } $r->print(''); } @@ -1542,7 +1549,7 @@ sub additional_item { sub actionbox { my ($status,$num,$scope) = @_; - my $output = '
    '. '