Include contest in job list
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 6 Feb 2015 08:52:50 +0000 (10:52 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 6 Feb 2015 08:52:50 +0000 (10:52 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/log.en

index d37d1a703557d15cf4c245b43e5ea99c06f2904f..8f47616eaf4e9446ee550c774b62e60972e49e2b 100644 (file)
@@ -226,6 +226,8 @@ sub process_log {
                $tr->fclass('id')->namedlink($data->{id});
                $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('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);
index f6e5097ab44026c186e108af51ed708c87de5e3d..c95d82bcc09c3ac56a90ed380a8b611680275fb3 100644 (file)
@@ -1,9 +1,10 @@
 <table border class="table table-bordered table-striped">
-<thead><tr><th>ID<th>Problem<th>Date<th>Format<th>Size<th>User<th>Result</thead>
+<thead><tr><th>ID<th>Problem<th>Contest<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="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>
This page took 0.011676 seconds and 4 git commands to generate.