X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FCt%2FEntry.pm;h=83e270548c11002479eddd89c6845585a15cef64;hb=6af4c58414046030f387c7f8cb8aa06776d64607;hp=9414de8465daffd927e3e7125d7c1335b931184e;hpb=864be20fdc7711f572c3cd654fc04eb3a2d8c949;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Ct/Entry.pm b/lib/Gruntmaster/Page/Ct/Entry.pm index 9414de8..83e2705 100644 --- a/lib/Gruntmaster/Page/Ct/Entry.pm +++ b/lib/Gruntmaster/Page/Ct/Entry.pm @@ -12,22 +12,21 @@ use constant TEMPLATES => { Contest start time:
Contest end time:

-Problems
-Job log
-Standings
+Problems
+Job log
+Standings
HTML }; sub _generate{ - my ($self, $htc, $path, $lang) = @_; + my ($self, $htc, $lang, $env, $id) = @_; + debug $env => "language is '$lang' and id is '$id'"; - $path = ($path =~ m,ct/(.*)/index,)[0]; - - $htc->param(id => $path); - $htc->param(name => contest_name $path); - $htc->param(start => strftime '%c', localtime contest_start $path); - $htc->param(end => strftime '%c', localtime contest_end $path); - $htc->param(started => time >= contest_start $path); + $htc->param(id => $id); + $htc->param(name => contest_name $id); + $htc->param(start => strftime '%c', localtime contest_start $id); + $htc->param(end => strftime '%c', localtime contest_end $id); + $htc->param(started => time >= contest_start $id); } 1