From 392487d620d90bca05d8706930d567be9eefb16b Mon Sep 17 00:00:00 2001
From: Marius Gavrilescu <marius@ieval.ro>
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 @@
-<table border class="table table-bordered table-striped">
-<thead><tr><th>ID<th>Problem<th>Contest<th>Date<th>Format<th>Size<th>User<th>Result</thead>
+<table border class="table table-bordered table-striped table-condensed">
+<thead><tr><th>ID<th>Problem<th>Contest<th>Date<th>Source<th>User<th>Result</thead>
 
 <tbody>
 <tr><td class="id"><a href="/log/id">Job ID</a>
 <td class="problem"><a href="/pb/id">Problem name</a>
 <td class="contest"><a href="/ct/id">Contest name</a>
 <td class="date">Date
-<td class="format">Format
-<td class="size"><a href="/src/id">3.14KB</a>
+<td class="source"><a href="/src/id">3.14KB CPP</a>
 <td class="owner"><a href="/us/id">Owner name</a>
 <td class="result_text"><tmpl_var result_text>
 </tmpl_loop>
-- 
2.39.5