--- loncom/publisher/lonpubdir.pm 2001/04/03 10:48:08 1.2
+++ loncom/publisher/lonpubdir.pm 2001/05/03 11:04:07 1.5
@@ -34,6 +34,7 @@ sub handler {
$fn=$r->filename();
}
+ $fn=~s/\/$//;
unless ($fn) {
$r->log_reason($ENV{'user.name'}.' at '.$ENV{'user.domain'}.
@@ -57,7 +58,7 @@ sub handler {
my $thisdisfn=$fn;
$thisdisfn=~s/^\/home\/$uname\/public_html//;
- $r->print('
Construction Space Directory '.$thisdisfn.'
');
+ $r->print('Construction Space Directory '.$thisdisfn.'/
');
my $docroot=$r->dir_config('lonDocRoot');
@@ -91,15 +92,27 @@ sub handler {
} else {
$status='Modified';
$bgcol='#FFFFBB';
+ if
+ (&Apache::lonnet::fileembstyle(($filename=~/\.(\w+)$/)) eq 'ssi') {
+ $status.='
Diffs';
+ }
}
}
$r->print(''.$filename.
' | '.localtime($cmtime).' | '.$status.' |
');
} elsif ($cmode&$dirptr) {
- $r->print(''.$filename.
- ' | '.localtime($cmtime).' | |
');
+ my $disfilename=$filename;
+ if ($filename eq '..') {
+ $disfilename='Parent Directory';
+ }
+ unless ((($filename eq '..') && ($thisdisfn eq '')) ||
+ ($filename eq '.')) {
+ $r->print(''.$disfilename.
+ ' | '.localtime($cmtime).' | |
');
+ }
}
}
closedir(DIR);
@@ -107,3 +120,6 @@ sub handler {
$r->print('