summaryrefslogtreecommitdiff
path: root/mydl.pl
diff options
context:
space:
mode:
Diffstat (limited to 'mydl.pl')
-rwxr-xr-xmydl.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/mydl.pl b/mydl.pl
index 74dd98f..0ceb08d 100755
--- a/mydl.pl
+++ b/mydl.pl
@@ -23,8 +23,10 @@ if (param('only_me'))
}
foreach my $dl ( @downloads)
{
+ my $dl_remove;
+ $dl_remove = a({href=>'/cgi-bin/nzbget/remove.pl?id='.$dl->download_id},"loeschen") if $dl->owner->owner_id == $user->get_id;
print Tr(td([
- $dl->category->name,a({title=>$dl->description,href=>'/'.$dl->category->name.'/'.$dl->download_id},$dl->name),$dl->size.'MB'
+ $dl->category->name,a({title=>$dl->description,href=>'/'.$dl->category->name.'/'.$dl->download_id},$dl->name),$dl->size.'MB',$dl_remove
]));
}