--- loncom/interface/portfolio.pm 2006/08/18 13:49:34 1.160 +++ loncom/interface/portfolio.pm 2006/08/24 17:38:21 1.161 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.160 2006/08/18 13:49:34 raeburn Exp $ +# $Id: portfolio.pm,v 1.161 2006/08/24 17:38:21 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -191,6 +191,11 @@ sub display_directory_line { } if ($lock_info) { my %anchor_fields = ('lockinfo' => $fullpath); + if ($versions) { # hold the folder open + my ($fname,$version,$extension) = &Apache::grades::file_name_version_ext($fullpath); + $fname =~ s|^/||; + $anchor_fields{'showversions'} = $fname.'.'.$extension; + } $lock_info = &make_anchor(undef,\%anchor_fields,$lock_info); } $r->print(''.$lock_info.''); @@ -496,6 +501,7 @@ sub done { $message='Done'; } my %anchor_fields = ( + 'showversions' => $env{'form.showversions'}, 'currentpath' => $env{'form.currentpath'}, 'fieldname' => $env{'form.fieldname'}, 'mode' => $env{'form.mode'}