From: Marius Gavrilescu Date: Sun, 26 Jan 2014 09:05:11 +0000 (+0200) Subject: Add problem owner and author X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=2ee6edcf1262d2a3059dd0859d9b750c4a2ff02b;p=gruntmaster-page.git Add problem owner and author --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 77d78c0..aac9ad1 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -69,7 +69,7 @@ sub defhash{ }; } -defhash problem => qw/name level statement/; +defhash problem => qw/name level statement owner author/; defhash contest => qw/start end name owner/; defhash job => qw/date extension filesize private problem result result_text user/; defhash user => qw/name email town university level/; diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index dbf66b4..0516053 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -44,6 +44,8 @@ sub _generate{ $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); }