--- loncom/publisher/lonpubdir.pm 2012/10/29 17:38:55 1.144 +++ loncom/publisher/lonpubdir.pm 2013/07/27 21:38:54 1.148 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA -# Construction Space Directory Lister +# Authoring Space Directory Lister # -# $Id: lonpubdir.pm,v 1.144 2012/10/29 17:38:55 raeburn Exp $ +# $Id: lonpubdir.pm,v 1.148 2013/07/27 21:38:54 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -97,6 +97,7 @@ sub handler { opendir(DIR,$fn); my @files=sort {uc($a) cmp uc($b)} (readdir(DIR)); foreach my $filename (@files) { + next if ($filename eq '.DS_Store'); my ($cdev,$cino,$cmode,$cnlink, $cuid,$cgid,$crdev,$csize, $catime,$cmtime,$cctime, @@ -143,20 +144,28 @@ sub startpage { &Apache::lonhtmlcommon::clear_breadcrumbs(); &Apache::lonhtmlcommon::add_breadcrumb({ - 'text' => 'Construction Space', + 'text' => 'Authoring Space', 'href' => &Apache::loncommon::authorspace($formaction), }); # breadcrumbs (and tools) will be created # in start_page->bodytag->innerregister $env{'request.noversionuri'}=$formaction; - $r->print(&Apache::loncommon::start_page('Construction Space',undef)); + $r->print(&Apache::loncommon::start_page('Authoring Space',undef)); + + my $londocroot = $Apache::lonnet::perlvar{'lonDocRoot'}; + my $current_disk_usage = &Apache::lonnet::diskusage($udom,$uname,"$londocroot/priv/$udom/$uname"); + my $disk_quota = &Apache::loncommon::get_user_quota($uname,$udom,'author'); #expressed in Mb + $disk_quota = 1000 * $disk_quota; # convert from Mb to kb $r->print(&Apache::loncommon::head_subbox( - &Apache::loncommon::CSTR_pageheader())); + '