diff options
author | Othmar Gsenger <otti@wirdorange.org> | 2011-01-15 05:21:19 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@wirdorange.org> | 2011-01-15 05:21:19 +0000 |
commit | 4cecda2089b57842b54f40deb2145e1a3e06ec3a (patch) | |
tree | e90f81d562616294447c360aa28da5c53a73e7e7 /mydl.pl | |
parent | whatever (diff) |
added completed mark
Diffstat (limited to 'mydl.pl')
-rwxr-xr-x | mydl.pl | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |