]> iEval git - plack-app-gruntmaster.git/blame_incremental - lib/Gruntmaster/Page/Us.pm
Fix and update standings
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Us.pm
... / ...
CommitLineData
1package Gruntmaster::Page::Us;
2
3use 5.014000;
4use strict;
5use warnings;
6use Gruntmaster::Page::Base us => 'Users';
7our @ISA = qw/Gruntmaster::Page::Base/;
8our $VERSION = '0.001';
9
10use constant TEMPLATES => {
11 en => <<'HTML',
12<ol><tmpl_loop users><li><a href="<tmpl_var id>.var"><tmpl_var name></a>
13</tmpl_loop></ol>
14HTML
15};
16
17sub _generate{
18 my ($self, $htc, $path, $lang) = @_;
19
20 $htc->param(users => [ sort { lc $a->{name} cmp lc $b->{name} }
21 map { {id => $_, name => user_name} }
22 grep { user_name =~ /\w/ } users ]);
23}
24
251
This page took 0.018844 seconds and 4 git commands to generate.