--- loncom/publisher/lonpubdir.pm 2016/06/19 04:27:58 1.169 +++ loncom/publisher/lonpubdir.pm 2023/06/10 23:01:15 1.175 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Authoring Space Directory Lister # -# $Id: lonpubdir.pm,v 1.169 2016/06/19 04:27:58 raeburn Exp $ +# $Id: lonpubdir.pm,v 1.175 2023/06/10 23:01:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -67,9 +67,7 @@ sub handler { $r->send_http_header; &Apache::lonhtmlcommon::clear_breadcrumbs(); - my $js = ''; - $r->print(&Apache::loncommon::start_page('Authoring Space', $js). + $r->print(&Apache::loncommon::start_page('Authoring Space'). '
'. '

'. &mt('Your Authoring Space is currently in the location used by LON-CAPA version 2.10 and older, but your domain is using a newer LON-CAPA version ([_1]).',$version).'

'. @@ -108,7 +106,7 @@ sub handler { $cstr,$crstype); # 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, $crsauthor); if (!-d $fn) { if (-e $fn) { @@ -551,7 +549,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 @@ -572,29 +577,29 @@ sub dircontrols { -
+
-
+
-
-
+
+
$lt{'updc'} - - + +
-
+
$lt{'crea'} @@ -621,9 +626,9 @@ sub dircontrols { -    +   
- Quickactions: + $lt{'shcu'}: @@ -636,26 +641,36 @@ sub dircontrols { @@ -682,26 +697,26 @@ END sub resourceactions { my ($r,$uname,$udom,$thisdisfn) = @_; $r->print(< + -
+
-
+
-
+
-
+
-
+
END @@ -779,7 +794,7 @@ sub putdirectory { } else { $actionitem = '
'. + '" action="/adm/publish">'. '