]> iEval git - gruntmaster-page.git/blobdiff - lib/Plack/App/Gruntmaster/HTML.pm
Hide contest timer on finished contests
[gruntmaster-page.git] / lib / Plack / App / Gruntmaster / HTML.pm
index fe7e4964ebe02507e0f86b4d281667bb0636c593..3404ddb2b04ecbc4a5a23a56870a7abd06ee3f06 100644 (file)
@@ -32,7 +32,7 @@ sub HTML::Element::iter3 {
 }
 
 sub HTML::Element::fid    { shift->look_down(id    => shift) }
-sub HTML::Element::fclass { shift->look_down(class => shift) }
+sub HTML::Element::fclass { shift->look_down(class => qr/\b$_[0]\b/) }
 
 sub HTML::Element::namedlink {
        my ($self, $id, $name) = @_;
@@ -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.021432 seconds and 4 git commands to generate.