]> iEval git - gruntmaster-page.git/commitdiff
Display result in log_entry
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 08:08:34 +0000 (10:08 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 08:08:34 +0000 (10:08 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/log_entry.en

index 3fe23e3fbd12fb432c2d71499202c02e7aa571cf..d68874b425274763859e783a847a462e90a48103 100644 (file)
@@ -213,6 +213,8 @@ sub process_log_entry {
                $tr->defmap(class => $data);
                $tr->fclass('result_text')->attr(class => "r$data->{result}")
        };
+       $tree->fclass('result_text')->replace_content($args{result_text});
+       $tree->fclass('result_text')->attr(class => "r$args{result}");
        $args{results} ? $tree->fid('results')->find('tbody')->find('tr')->iter3($args{results}, $iter) : $tree->fid('results')->detach;
        $tree->fid('no_results')->detach if $tree->fid('results') || $tree->fid('errors');
 }
index bac1338146374ccfac05caffc8394dcc629824a1..60e756d937a7e86d766e09312df904ea2d2cc8fb 100644 (file)
@@ -3,6 +3,7 @@
 <dt>Problem</dt> <dd id="problem"><a href="/pb/id">problem</a></dd>
 <dt>Contest</dt> <dd id="contest"><a href="/ct/id">contest</a></dd>
 <dt>Source</dt>  <dd><a id="source" href="/src/id">1.55 KB</a></dd>
+<dt>Result</dt>  <dd class="result_text">Accepted</dd>
 
 <div id="errors">
 <h2>Compiler output</h2>
This page took 0.026669 seconds and 4 git commands to generate.