From: Marius Gavrilescu Date: Wed, 4 Feb 2015 08:08:34 +0000 (+0200) Subject: Display result in log_entry X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=e1fab7d7938b45767fe5e057bee6ed2e9a094dd2;p=gruntmaster-page.git Display result in log_entry --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 3fe23e3..d68874b 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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'); } diff --git a/tmpl/log_entry.en b/tmpl/log_entry.en index bac1338..60e756d 100644 --- a/tmpl/log_entry.en +++ b/tmpl/log_entry.en @@ -3,6 +3,7 @@
Problem
problem
Contest
contest
Source
1.55 KB
+
Result
Accepted

Compiler output