blob: 3afc852369088d3ab0e2d253db70aa4caffe854d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package GroLUG::C::Iscritti; use strict; use warnings; use base 'Catalyst::Controller'; sub login :Global { my ( $self, $c ) = @_; if ($c->login) { $c->res->redirect($c->uri_for('/iscritti')); } else { $c->stash->{template}='login.tt2'; } } sub index :Private { my ( $self, $c ) = @_; $c->stash->{iscritti}=GroLUG::M::DB->resultset('Iscritto')->search({attivo=>1}); $c->stash->{template}='lista-iscritti.tt2'; } 1;
|