From: Marius Gavrilescu Date: Mon, 23 Mar 2015 18:19:36 +0000 (+0200) Subject: Disable interactive score display in pb_entry X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=b3da373011cea9bfc2349982b523b48c3b09adfc;p=gruntmaster-page.git Disable interactive score display in pb_entry --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index a9b0165..0a10ee8 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -160,10 +160,7 @@ sub process_pb_entry { if ($args{contest_stop}) { $tree->fid('solution')->detach; $tree->fid('solution_modal')->detach; - my $score = $tree->fid('score'); - $score->attr('data-start' => $args{open_time}); - $score->attr('data-stop' => $args{contest_stop}); - $score->attr('data-value' => $args{value}); + $tree->fid('score')->replace_content($args{value}); $tree->fid('countdown')->attr('data-stop' => $args{contest_stop}); } else { $tree->fid('job_log')->edit_href(sub{$_ .= "&private=$args{private}"}) if $args{private}; diff --git a/tmpl/pb_entry.en b/tmpl/pb_entry.en index e8d8f24..a12633d 100644 --- a/tmpl/pb_entry.en +++ b/tmpl/pb_entry.en @@ -9,7 +9,7 @@
Owner
owner
Level
Easy
Time limit (seconds)
1
-
Score
50
+
Score
50
Contest ends in
01:30