X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster%2FHTML.pm;h=8f47616eaf4e9446ee550c774b62e60972e49e2b;hb=8d690af588170f90b957507454123e3e9070f7a6;hp=d37d1a703557d15cf4c245b43e5ea99c06f2904f;hpb=c22928ed23e4213faf2529bde153a5c48e8f3629;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index d37d1a7..8f47616 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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);