From: Marius Gavrilescu Date: Sun, 22 Mar 2015 21:45:33 +0000 (+0200) Subject: Display format extension instead of format in job list X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=93ed6f8465757803a8307da3b2c097297ecec715;p=plack-app-gruntmaster.git Display format extension instead of format in job list --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index acb45c0..1eb6d98 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -243,7 +243,7 @@ sub process_log { $tr->fclass('contest')->namedlink($data->{contest}, $data->{contest_name}) if $data->{contest}; $tr->fclass('contest')->replace_content('None') unless $data->{contest}; $tr->fclass('date')->replace_content(ftime $data->{date}); - $tr->fclass('source')->namedlink("$data->{id}.$data->{extension}", sprintf "%.2fKB %s", $data->{size}/1024, $data->{format}); + $tr->fclass('source')->namedlink("$data->{id}.$data->{extension}", sprintf "%.2fKB %s", $data->{size}/1024, Plack::App::Gruntmaster::FORMAT_EXTENSION()->{$data->{format}}); $tr->fclass('owner')->namedlink($data->{owner}, $data->{owner_name}); $tr->fclass('result_text')->replace_content($data->{result_text}); $tr->fclass('result_text')->attr(class => "r$data->{result}");