]>
Commit | Line | Data |
---|---|---|
fe78f0c1 MG |
1 | package Gruntmaster::Page::Ct::Entry; |
2 | ||
3 | use 5.014000; | |
4 | use strict; | |
5 | use warnings; | |
bb95f538 MG |
6 | use Gruntmaster::Page::Base ct_entry => '<tmpl_var name>'; |
7 | our @ISA = qw/Gruntmaster::Page::Base/; | |
fe78f0c1 MG |
8 | our $VERSION = '0.001'; |
9 | ||
bb95f538 | 10 | sub _generate{ |
191f4979 MG |
11 | my ($self, $htc, $lang, $env, $id) = @_; |
12 | debug $env => "language is '$lang' and id is '$id'"; | |
fe78f0c1 | 13 | |
7dc32473 MG |
14 | $htc->param(id => $id); |
15 | $htc->param(name => contest_name $id); | |
16 | $htc->param(start => strftime '%c', localtime contest_start $id); | |
17 | $htc->param(end => strftime '%c', localtime contest_end $id); | |
18 | $htc->param(started => time >= contest_start $id); | |
fe78f0c1 MG |
19 | } |
20 | ||
21 | 1 |