--- loncom/publisher/lonpubdir.pm 2016/06/19 04:27:58 1.169 +++ loncom/publisher/lonpubdir.pm 2023/06/11 19:46:01 1.177 @@ -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.177 2023/06/11 19:46:01 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).'

'. @@ -106,9 +104,14 @@ sub handler { "$londocroot/priv/$udom/$uname"); # expressed in kB my $disk_quota = &Apache::loncommon::get_user_quota($uname,$udom, $cstr,$crstype); # expressed in MB + my $diraction; + if (-d $fn) { + $diraction = &diractions($thisdisfn); + } # 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, $diraction); if (!-d $fn) { if (-e $fn) { @@ -363,7 +366,7 @@ my $result = " + + + %s +
+ + +
- -
-
+END + $r->print(< +
$lt{'updc'} - - + +
-
+
$lt{'crea'} @@ -621,41 +653,51 @@ sub dircontrols { -    +   
- Quickactions: + $lt{'shcu'}: - + file icon - + problem icon - + web page icon - + folder icon @@ -663,18 +705,6 @@ sub dircontrols {
-
-
- $lt{'qs'} - - - - %s -
- - -
-
END } @@ -682,26 +712,26 @@ END sub resourceactions { my ($r,$uname,$udom,$thisdisfn) = @_; $r->print(< +
-
+
-
+
-
+
-
+
-
+
END @@ -779,7 +809,7 @@ sub putdirectory { } else { $actionitem = '
'. + '" action="/adm/publish">'. '