1 package SGN
::Controller
::List
;
4 use URI
::FromHash
'uri';
8 BEGIN { extends
'Catalyst::Controller'; }
11 sub list_details
:Path
('/list/details') :Args
(0) {
14 my $list_id = $c->req->param('list_id');
17 $c->res->redirect( uri
( path
=> '/user/login', query
=> { goto_url
=> $c->req->uri->path_query } ) );
21 my $list = CXGN
::List
->new( { dbh
=> $c->dbc->dbh, list_id
=>$list_id });
23 $c->stash->{list_id
} = $list_id;
24 $c->stash->{list_name
} = $list->name;
25 $c->stash->{list_description
} = $list->description;
26 $c->stash->{list_type
} = $list->type;
27 $c->stash->{list_size
} = $list->list_size;
28 $c->stash->{template
} = '/list/list_details.mas';