From: Marius Gavrilescu Date: Thu, 30 Jan 2014 16:10:07 +0000 (+0200) Subject: Show submit box in pb_entry before contest_start X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=9f8cf806e07f79de5cbfb2614a09917a107a718b;p=plack-app-gruntmaster.git Show submit box in pb_entry before contest_start --- diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index f2fa962..2dd0a7b 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -37,7 +37,7 @@ sub _generate{ $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);