summaryrefslogtreecommitdiff
path: root/mydl.pl
diff options
context:
space:
mode:
Diffstat (limited to 'mydl.pl')
-rwxr-xr-xmydl.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/mydl.pl b/mydl.pl
index d5ef969..f012743 100755
--- a/mydl.pl
+++ b/mydl.pl
@@ -13,15 +13,16 @@ print header;
use local::menu;
my $menu=new local::menu(%ENV);
print $menu->start_html('my downloads');
+print table({class=>'nohigh'},Tr(td({align=>'right'},['benutzter Speicherplatz   '. $user->obj->quota_used().' / '.$user->obj->quoata().' MB']))) if (param('only_me'));
print CGI::start_table();
print Tr(th([qw/Kategorie Name Größe Löschen /]));
my @downloads;
if (param('only_me'))
{
- @downloads = local::db::download->search(owner=>$user->get_id(),{ order_by => 'time DESC'});
+ @downloads = local::db::download->search(owner=>$user->get_id(),completed=>1,{ order_by => 'time DESC'});
} else {
- @downloads = reverse local::db::download->retrieve_all();
+ @downloads = local::db::download->search(completed=>1,{ order_by => 'time DESC'});
}
foreach my $dl ( @downloads)
{