Include job format in job log table
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 08:03:28 +0000 (10:03 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 08:03:28 +0000 (10:03 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/log.en

index dc74d87dd2b952a9a4f8ae2da91152e434dce368..3fe23e3fbd12fb432c2d71499202c02e7aa571cf 100644 (file)
@@ -225,6 +225,7 @@ sub process_log {
                $tr->fclass('problem')->namedlink($data->{problem}, $data->{problem_name});
                $tr->fclass('problem')->find('a')->edit_href(sub{$_ .= "?contest=$args{contest}"}) if $args{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('owner')->namedlink($data->{owner}, $data->{owner_name});
index eb4bf6f0926bd134a89bc577b875b5fc36ad8c6c..f6e5097ab44026c186e108af51ed708c87de5e3d 100644 (file)
@@ -1,10 +1,11 @@
 <table border class="table table-bordered table-striped">
-<thead><tr><th>ID<th>Problem<th>Date<th>Size<th>User<th>Result</thead>
+<thead><tr><th>ID<th>Problem<th>Date<th>Format<th>Size<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="date">Date
+<td class="format">Format
 <td class="size"><a href="/src/id">3.14KB</a>
 <td class="owner"><a href="/us/id">Owner name</a>
 <td class="result_text"><tmpl_var result_text>
This page took 0.011711 seconds and 4 git commands to generate.