From b3da373011cea9bfc2349982b523b48c3b09adfc Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 23 Mar 2015 20:19:36 +0200 Subject: [PATCH] Disable interactive score display in pb_entry --- lib/Plack/App/Gruntmaster/HTML.pm | 5 +---- tmpl/pb_entry.en | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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
-- 2.39.2