X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster%2FHTML.pm;h=8b7a0a872379f861f9888213b1c09337e1bd447a;hb=5251db546cbc5eb678a007cfee54d170ad29ff45;hp=8e36af534b5b3b11af75619472d3a57b4f612542;hpb=7d3edc4b152539c4b5b14e10bf406e281e94a81c;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 8e36af5..8b7a0a8 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -227,6 +227,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);