]> iEval git - gruntmaster-page.git/commitdiff
Merge branch 'master' into newmc
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 16 Mar 2015 16:33:12 +0000 (18:33 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 16 Mar 2015 16:33:12 +0000 (18:33 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index ea9926367890c8f4683f198e4e169b750b47ac03..59ee37734ab42b8d1918fd07a05f293b58b5c530 100644 (file)
@@ -150,6 +150,11 @@ sub process_pb_entry {
                level     => ucfirst $args{level},
                author    =>         $args{author},
                owner     =>         $args{owner_name} || $args{owner});
+       if ($args{limits}) {
+               my @limits = (@{$args{limits}}, {format => 'Other', timeout => $args{timeout} });
+               @limits = map { sprintf '%s (%s)', @{$_}{qw/timeout format/} } @limits;
+               $tree->look_down(smap => 'timeout')->replace_content(join ', ', @limits);
+       }
        if ($args{contest_stop}) {
                $tree->fid('solution')->detach;
                $tree->fid('solution_modal')->detach;
This page took 0.027751 seconds and 4 git commands to generate.