X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FGeneric.pm;h=e31740d63df50734e356ac991c4a3ca848e399e1;hb=99f0c4ecf3eecfff5752cfb1e137fbe4aeb8722d;hp=3fdd47c0a157d7e190ab5c5c6464bf1e5b53787e;hpb=e3ab4b036900e0ae2f0b0a39641b2aed82fce8f5;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Generic.pm b/lib/Gruntmaster/Page/Generic.pm index 3fdd47c..e31740d 100644 --- a/lib/Gruntmaster/Page/Generic.pm +++ b/lib/Gruntmaster/Page/Generic.pm @@ -3,7 +3,7 @@ package Gruntmaster::Page::Generic; use 5.014000; use strict; use warnings; -our $VERSION = '0.001'; +our $VERSION = '5999.000_001'; use Gruntmaster::Data; use Gruntmaster::Page::Base; @@ -114,7 +114,7 @@ thing { 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} } }; };