From: Marius Gavrilescu Date: Sun, 8 Feb 2015 10:49:28 +0000 (+0200) Subject: Hide contest timer on finished contests X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=00398f5cc3854c6e0364a61c086ba22fdce6a5d1;p=plack-app-gruntmaster.git Hide contest timer on finished contests --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 81a33c0..3404ddb 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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 {