};
sub _generate{
- my ($self, $htc, $path, $lang) = @_;
-
- $path =~ m,(?:ct/([^/])+/)?pb/(\w+)\.html$,;
-
- my ($contest, $id) = ($1, $2);
+ my ($self, $htc, $lang, $logger, $contest, $id) = @_;
+ debug $logger => "language is '$lang', contest is '$contest', id is '$id'";
$htc->param(cansubmit => 1);
if (defined $contest) {
- $htc->param(cansubmit => time >= contest_start $contest && time <= contest_end $contest);
+ $htc->param(cansubmit => time <= contest_end $contest);
$htc->param(contest => $contest);
}
$htc->param(formats => Gruntmaster::Page::Submit::FORMATS);
$htc->param(id => $id);
local $Gruntmaster::Data::contest = $contest if $contest;
$htc->param(name => problem_name $id);
+ $htc->param(author => problem_author $id);
+ $htc->param(owner => problem_owner $id);
$htc->param(statement => problem_statement $id);
}