]> iEval git - gruntmaster-page.git/commitdiff
Display format extension instead of format in job list
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 22 Mar 2015 21:45:33 +0000 (23:45 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 22 Mar 2015 21:45:33 +0000 (23:45 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index acb45c049c8eb42c0cfbe08c43e804ff1f207f9d..1eb6d988d05d081d98b173b1ec8d9867cc0ef5a5 100644 (file)
@@ -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('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}");
                $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}");
This page took 0.032115 seconds and 4 git commands to generate.