--- loncom/interface/portfolio.pm 2004/07/28 19:00:19 1.18
+++ loncom/interface/portfolio.pm 2004/08/23 21:16:43 1.21
@@ -220,7 +220,7 @@ sub handler {
#
my $portfolio_root = &Apache::loncommon::propath($ENV{'user.domain'},
$ENV{'user.name'}).
- '/userfiles/portfolio'.$currentPath;
+ '/userfiles/portfolio';
@dirList = &Apache::lonnet::dirlist($currentPath, $ENV{'user.domain'}, $ENV{'user.name'}, $portfolio_root);
if (@dirList == 2) { # need to know if directory is empty so it can be removed if desired
@@ -250,16 +250,50 @@ sub handler {
# Display begins here
#
##############################
+ $r->print('
');
+ $r->print('');
+ my $displayOut = '';
+ $r->print($displayOut);
+ $r->print(' |
');
+ my @tree = split (/\//,$currentPath);
+ $r->print(''.makeAnchor('/','/'));
+ if (@tree > 1){
+ my $newCurrentPath = '';
+ for (my $i = 1; $i< @tree; $i++){
+ $newCurrentPath .= $tree[$i].'/';
+ $r->print(makeAnchor($tree[$i],'/'.$newCurrentPath).'/');
+ }
+ }
+ $r->print('');
+ &Apache::lonhtmlcommon::store_recent('portfolio',$currentPath,$currentPath);
+ $r->print('
");
$r->print(''.
' | Actions | Name | Title | Status | Last Modified |
');
foreach my $line (@dirList) {
#$strip holds directory/file name
#$dom
my ($fileName,$dom,undef,$testdir,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,$obs,undef)=split(/\&/,$line,16);
- if ($dirptr&$testdir){
- $r->print('![]('.$iconpath.'folder_closed.gif) |
');
- }else{
- $r->print('![]('.$iconpath.'doc.gif) |
');
+ if (($fileName ne '.') && ($fileName ne '..')){
+ if ($dirptr&$testdir){
+ $r->print('![]('.$iconpath.'folder_closed.gif) | ');
+ $r->print('Go to ... | ');
+ $r->print(''.makeAnchor($fileName.'/',$currentPath.$fileName.'/').' | ');
+ $r->print('
');
+ }else{
+ $r->print('![]('.$iconpath.'unknown.gif) | ');
+ $r->print('Edit | ');
+ $r->print(''.$fileName.' | ');
+ $r->print('Title Here | ');
+ $r->print('Status Here | ');
+ $r->print('Modified Here | ');
+ $r->print('
');
+ }
}
}
# pink bg