X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FCt%2FEntry.pm;h=97089b536852a57fa24243ec9d47578b5672216d;hb=7dc3247307f2e86af154dc449224f22ba8923c79;hp=9414de8465daffd927e3e7125d7c1335b931184e;hpb=e9e5c8a440a6e3a088a4b9330650e310561ef518;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Ct/Entry.pm b/lib/Gruntmaster/Page/Ct/Entry.pm index 9414de8..97089b5 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, $logger, $id) = @_; + debug $logger => "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