+ $tree->fid('problem')->namedlink(@args{qw/problem problem_name/});
+ $tree->fid('owner')->namedlink(@args{qw/owner owner_name/});
+ $tree->fid('source')->namedlink("$args{id}.$args{extension}", sprintf '%.2fKB', $args{size}/1024);
+ if ($args{contest}) {
+ $tree->fid('contest')->namedlink(@args{qw/contest contest_name/});
+ $tree->fid('problem')->find('a')->edit_href(sub {$_.="?contest=$args{contest}"});
+ } else {
+ $tree->fid('contest')->left->detach;
+ $tree->fid('contest')->detach;
+ }
+