X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb%2FEntry.pm;h=6df5e5e236805f7404fc81b0973b4b44d0bcffae;hb=dfe9fad19b62489af03cdd2fd29cc5057536b483;hp=b45887f11f050fbd75fd59e7519f321a0a35a9c9;hpb=7dc3247307f2e86af154dc449224f22ba8923c79;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index b45887f..6df5e5e 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -9,22 +9,28 @@ our $VERSION = '0.001'; use constant TEMPLATES => { en => <<'HTML', +
+
+
+

Submit solution

-
+ - -
+
+
+
- + +
HTML }; @@ -33,7 +39,7 @@ sub _generate{ debug $logger => "language is '$lang', contest is '$contest', id is '$id'"; $htc->param(cansubmit => 1); - if (defined $contest) { + if ($contest) { $htc->param(cansubmit => time <= contest_end $contest); $htc->param(contest => $contest); }