projects
/
plack-app-gruntmaster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2542002
)
Reverse contest sort order
author
Marius Gavrilescu
<marius@ieval.ro>
Fri, 28 Feb 2014 20:13:16 +0000
(22:13 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Fri, 28 Feb 2014 20:13:16 +0000
(22:13 +0200)
lib/Gruntmaster/Page/Generic.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/Generic.pm
b/lib/Gruntmaster/Page/Generic.pm
index 3fdd47c0a157d7e190ab5c5c6464bf1e5b53787e..c54c9fc3d2bc752709f7683195e9467c09df1803 100644
(file)
--- a/
lib/Gruntmaster/Page/Generic.pm
+++ b/
lib/Gruntmaster/Page/Generic.pm
@@
-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} } };
};
This page took
0.027153 seconds
and
4
git commands to generate.