sub job_entry {
my ($self, $id) = @_;
- my $job = $self->jobs->find($id, {prefetch => ['problem', 'owner']});
+ my $job = $self->jobs->find($id, {prefetch => ['problem', 'owner', 'contest']});
my %params = $job->get_columns;
$params{owner_name} = $job->owner->name;
$params{problem_name} = $job->problem->name;
+ $params{contest_name} = $job->contest->name if $params{contest};
$params{results} &&= decode_json $params{results};
$params{size} = length $params{source};
delete $params{source};