summaryrefslogtreecommitdiff
path: root/mydl.pl
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@wirdorange.org>2011-01-15 05:21:19 +0000
committerOthmar Gsenger <otti@wirdorange.org>2011-01-15 05:21:19 +0000
commit4cecda2089b57842b54f40deb2145e1a3e06ec3a (patch)
treee90f81d562616294447c360aa28da5c53a73e7e7 /mydl.pl
parentwhatever (diff)
added completed mark
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 &nbsp; '. $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)
{