--- loncom/publisher/lonpubdir.pm 2019/08/13 17:01:24 1.160.2.4 +++ loncom/publisher/lonpubdir.pm 2024/07/03 21:05:49 1.160.2.6 @@ -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.6 2024/07/03 21:05:49 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) { @@ -507,7 +507,14 @@ sub dircontrols { acti => 'Actions for current directory', updc => 'Upload a new document', pick => 'Please select an action to perform using the new filename', + shcu => 'Shortcuts', ); + my %js_lt = &Apache::lonlocal::texthash( + nanf => 'Name of New File', + nans => 'Name of New Subdirectory', + psfn => 'Please specify file name', + ); + &js_escape(\%js_lt); my $mytype = $lt{'type'}; # avoid conflict with " and ' in javascript # Calculate free space in bytes. # $disk_quota is in MB and $current_disk_usage is in kB @@ -528,21 +535,21 @@ sub dircontrols { -
+
-
+
-
+
$lt{'updc'} - +
@@ -550,7 +557,7 @@ sub dircontrols {
- +
$lt{'crea'} @@ -577,9 +584,9 @@ sub dircontrols { -    +   
- Quickactions: + $lt{'shcu'}: @@ -592,26 +599,36 @@ sub dircontrols { @@ -626,26 +643,26 @@ END sub resourceactions { my ($r,$uname,$udom,$thisdisfn) = @_; $r->print(< + -
+
-
+
-
+
-
+
-
+
END @@ -722,8 +739,7 @@ sub putdirectory { $disfilename = ''.&mt('Parent Directory').''; } else { $actionitem = - '
'. + ''. '