]> iEval git - plack-app-gruntmaster.git/blame - lib/Gruntmaster/Page/Us.pm
Sort contests by start date
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Us.pm
CommitLineData
4aa8ba86
MG
1package Gruntmaster::Page::Us;
2
3use 5.014000;
4use strict;
5use warnings;
bb95f538
MG
6use Gruntmaster::Page::Base us => 'Users';
7our @ISA = qw/Gruntmaster::Page::Base/;
4aa8ba86
MG
8our $VERSION = '0.001';
9
bb95f538 10sub _generate{
191f4979
MG
11 my ($self, $htc, $lang, $env) = @_;
12 debug $env => "language is '$lang'";
4aa8ba86 13
f7d696bc
MG
14 $htc->param(users => [ sort { lc $a->{name} cmp lc $b->{name} }
15 map { {id => $_, name => user_name} }
16 grep { user_name =~ /\w/ } users ]);
4aa8ba86
MG
17}
18
191
This page took 0.039271 seconds and 4 git commands to generate.