]> iEval git - gruntmaster-page.git/blobdiff - lib/Plack/App/Gruntmaster/HTML.pm
Show contest names on user pages
[gruntmaster-page.git] / lib / Plack / App / Gruntmaster / HTML.pm
index 45230551f8a391bd2042b08a550e9fd33e8877ca..2ae8a4410626037942da16ff01399768760f934e 100644 (file)
@@ -93,7 +93,7 @@ sub process_us_entry {
 
        my $ctiter = sub {
                my ($data, $td) = @_;
-               $td->fclass('contest')->namedlink($data->{contest});
+               $td->fclass('contest')->namedlink($data->{contest}, $data->{contest_name});
                $td->fclass('score')->replace_content($data->{score});
                $td->fclass('rank')->replace_content($data->{rank});
        };
@@ -237,7 +237,6 @@ sub process_st {
                $tr->set_child_content(class => 'score', $st->{score});
                $tr->fclass('user')->namedlink($st->{user}, $st->{user_name});
                my $pbscore = $tr->fclass('pbscore');
-               $pbscore->detach unless $st->{problems};
                $pbscore->iter($pbscore => @{$st->{scores}});
        };
        $tree->find('tbody')->find('tr')->iter3($args{st}, $iter);
This page took 0.025795 seconds and 4 git commands to generate.