From e1fab7d7938b45767fe5e057bee6ed2e9a094dd2 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 4 Feb 2015 10:08:34 +0200 Subject: [PATCH] Display result in log_entry --- lib/Plack/App/Gruntmaster/HTML.pm | 2 ++ tmpl/log_entry.en | 1 + 2 files changed, 3 insertions(+) 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

-- 2.39.2