From 9709fdc517e57dcbccbb24ebb68128b05f1e3fdf Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 9 Feb 2006 13:28:43 +0000 Subject: cambia i namespace git-svn-id: svn://luxion/repos/IscrittiGroLUG/trunk@177 fcb26f47-9200-0410-b104-b98ab5b095f3 --- GroLUG/lib/GroLUG/C/Iscritti.pm | 43 ----------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 GroLUG/lib/GroLUG/C/Iscritti.pm (limited to 'GroLUG/lib/GroLUG/C/Iscritti.pm') diff --git a/GroLUG/lib/GroLUG/C/Iscritti.pm b/GroLUG/lib/GroLUG/C/Iscritti.pm deleted file mode 100644 index 513e6ac..0000000 --- a/GroLUG/lib/GroLUG/C/Iscritti.pm +++ /dev/null @@ -1,43 +0,0 @@ -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 logout :Global { - my ( $self, $c ) = @_; - - $c->logout(); - - $c->res->redirect($c->uri_for('/')); -} - -sub index :Private { - my ( $self, $c ) = @_; - - $c->stash->{iscritti}=GroLUG::M::DB->resultset('Iscritto')->search({attivo=>1}); - $c->stash->{template}='lista-iscritti.tt2'; -} - -sub iscritto :Global { - my ($self,$c,$id)=@_; - - $c->log->info($c->user->id,"scheda iscritto $id"); - - $c->stash->{iscritto}=GroLUG::M::DB->resultset('Iscritto')->find($id); - - $c->stash->{template}='scheda-iscritto.tt2'; -} - -1; -- cgit v1.2.3