From 392487d620d90bca05d8706930d567be9eefb16b Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 27 Feb 2015 12:43:28 +0200 Subject: [PATCH] Make job list more compact --- lib/Plack/App/Gruntmaster/HTML.pm | 4 +--- tmpl/log.en | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 7fa63f5..f9f1eb7 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -234,9 +234,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('format')->replace_content($data->{format}); - $tr->fclass('size')->namedlink("$data->{id}.$data->{extension}", sprintf "%.2fKB", $data->{size}/1024); - $tr->fclass('size')->attr('data-private', '') if $data->{private}; + $tr->fclass('source')->namedlink("$data->{id}.$data->{extension}", sprintf "%.2fKB %s", $data->{size}/1024, $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}"); diff --git a/tmpl/log.en b/tmpl/log.en index c95d82b..b81e6ef 100644 --- a/tmpl/log.en +++ b/tmpl/log.en @@ -1,13 +1,12 @@ - - +
IDProblemContestDateFormatSizeUserResult
+
IDProblemContestDateSourceUserResult
Job ID Problem name Contest name Date -Format -3.14KB +3.14KB CPP Owner name -- 2.39.2