]> iEval git - plack-app-gruntmaster.git/commitdiff
Hide contest timer on finished contests
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 10:49:28 +0000 (12:49 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 10:49:28 +0000 (12:49 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index 81a33c0dc59a12e0d4822ea95f12989ecca76dcd..3404ddb2b04ecbc4a5a23a56870a7abd06ee3f06 100644 (file)
@@ -122,6 +122,7 @@ sub process_ct_entry {
                stop        => ftime   $args{stop},
                status      => $status,
                description => literal $args{description});
+       $tree->fid('ctcountdown')->detach if $args{time} >= $args{stop};
 }
 
 sub process_ct {
This page took 0.024572 seconds and 4 git commands to generate.