X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FCt%2FEntry.pm;h=97089b536852a57fa24243ec9d47578b5672216d;hb=dfe9fad19b62489af03cdd2fd29cc5057536b483;hp=6266661e39c288d4112c2a5c475ec87224968857;hpb=bb95f538bf263c0294d87cfb90d58c66117b9aab;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Ct/Entry.pm b/lib/Gruntmaster/Page/Ct/Entry.pm index 6266661..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', contest_start); - $htc->param(end => strftime '%c', contest_end); - $htc->param(started => time >= contest_start); + $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