--- loncom/publisher/lonpubdir.pm 2019/08/13 17:01:24 1.160.2.4 +++ loncom/publisher/lonpubdir.pm 2024/02/28 04:58:02 1.160.2.5.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Authoring Space Directory Lister # -# $Id: lonpubdir.pm,v 1.160.2.4 2019/08/13 17:01:24 raeburn Exp $ +# $Id: lonpubdir.pm,v 1.160.2.5.2.3 2024/02/28 04:58:02 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -91,10 +91,10 @@ sub handler { my $current_disk_usage = &Apache::lonnet::diskusage($udom,$uname, "$londocroot/priv/$udom/$uname"); # expressed in kB my $disk_quota = &Apache::loncommon::get_user_quota($uname,$udom, - $cstr,$crstype); # expressed in MB + 'author'); # expressed in MB # Put out the start of page. - &startpage($r, $uname, $udom, $thisdisfn, $current_disk_usage, $disk_quota, $crsauthor); + &startpage($r, $uname, $udom, $thisdisfn, $current_disk_usage, $disk_quota); if (!-d $fn) { if (-e $fn) { @@ -290,6 +290,7 @@ sub handler { } # Print the sorted resources + my %editors = &Apache::loncommon::permitted_editors(); foreach my $filename (@sorted_files) { if ($filehash->{$filename}->{"cmode"}&$dirptr) { # Directories &putdirectory($r, $thisdisfn, $linkdir, $filename, @@ -302,7 +303,8 @@ sub handler { $filehash->{$filename}->{"linkfilename"}, $filehash->{$filename}->{"fulltitle"}, $filehash->{$filename}->{"status"}, - $filehash->{$filename}->{"pubstatus"}); + $filehash->{$filename}->{"pubstatus"}, + \%editors); } } @@ -528,17 +530,17 @@ sub dircontrols { -
+
-
+
-
+
$lt{'updc'} @@ -550,7 +552,7 @@ sub dircontrols {
- +
$lt{'crea'} @@ -626,26 +628,26 @@ END sub resourceactions { my ($r,$uname,$udom,$thisdisfn) = @_; $r->print(< + -
+
-
+
-
+
-
+
-
+
END @@ -723,7 +725,7 @@ sub putdirectory { } else { $actionitem = '
'. + '" action="/adm/publish">'. '