use 5.014000;
use strict;
use warnings;
-our $VERSION = '0.001';
+our $VERSION = '5999.000_001';
use Gruntmaster::Data;
use Gruntmaster::Page::Base;
thing {
params qw/ct contest Contests/;
- sortby { $a->{start} <=> $b->{start} };
+ sortby { $b->{start} <=> $a->{start} };
group { time < $_->{start} ? 'pending' : time > $_->{end} ? 'finished' : 'running' };
mangle { $_->{started} = time >= $_->{start}; $_->{owner_name} = do { local $Gruntmaster::Data::contest; user_name $_->{owner} } };
};