]> iEval git - gruntmaster-page.git/commitdiff
Disable interactive score display in pb_entry
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 23 Mar 2015 18:19:36 +0000 (20:19 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 23 Mar 2015 18:19:36 +0000 (20:19 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/pb_entry.en

index a9b0165f8337e13e998e34fb66410df344fbaf74..0a10ee83daba80770df48df48366faeeaa6be8e3 100644 (file)
@@ -160,10 +160,7 @@ sub process_pb_entry {
        if ($args{contest_stop}) {
                $tree->fid('solution')->detach;
                $tree->fid('solution_modal')->detach;
        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};
                $tree->fid('countdown')->attr('data-stop' => $args{contest_stop});
        } else {
                $tree->fid('job_log')->edit_href(sub{$_ .= "&private=$args{private}"}) if $args{private};
index e8d8f248eebb3a32cb99b48c3e9d3a922ff9863a..a12633d82b5456d8d218fdfbade5db9c5f10dd89 100644 (file)
@@ -9,7 +9,7 @@
 <dt>Owner</dt> <dd id="owner">owner</dd>
 <dt>Level</dt> <dd id="level">Easy</dd>
 <dt>Time limit (seconds)</dt> <dd smap="timeout">1</dd>
 <dt>Owner</dt> <dd id="owner">owner</dd>
 <dt>Level</dt> <dd id="level">Easy</dd>
 <dt>Time limit (seconds)</dt> <dd smap="timeout">1</dd>
-<dt class="rc reqjs">Score</dt> <dd id="score" class="timer reqjs rc" data-start="..." data-stop="..." data-value="100">50</dd>
+<dt class="rc reqjs">Score</dt> <dd id="score" class="rc">50</dd>
 <dt class="rc reqjs">Contest ends in</dt> <dd id="countdown" class="timer reqjs rc" data-stop="...">01:30</dd>
 </dl>
 
 <dt class="rc reqjs">Contest ends in</dt> <dd id="countdown" class="timer reqjs rc" data-stop="...">01:30</dd>
 </dl>
 
This page took 0.029628 seconds and 4 git commands to generate.