--- loncom/publisher/lonpubdir.pm 2019/08/13 19:27:43 1.160.2.5 +++ 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.5 2019/08/13 19:27:43 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 # @@ -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 = - '
'. + ''. '