Merge pull request #5205 from solgenomics/topic/generic_trial_upload
[sgn.git] / lib / SGN / Controller / ExpressionTool.pm
blob1e680e879c73e04547c2fc10663fcd56162f4e63
2 package SGN::Controller::ExpressionTool;
4 use Moose;
5 use Data::Dumper;
6 use URI::FromHash 'uri';
8 #use CXGN::DB::Connection;
9 #use CXGN::BlastDB;
10 #use CXGN::Page::FormattingHelpers qw| page_title_html info_table_html hierarchical_selectboxes_html |;
11 #use CXGN::Page::UserPrefs;
14 BEGIN { extends 'Catalyst::Controller'; }
17 sub input :Path('/tools/expression/') :Args(0) {
18 my ($self, $c) = @_;
19 $c->stash->{template} = '/tools/expression/input.mas';
23 sub expression_atlas :Path('/tools/expression_atlas/') :Args(0) {
24 my ($self, $c) = @_;
25 if (!$c->user()) {
26 $c->res->redirect( uri( path => '/user/login', query => { goto_url => $c->req->uri->path_query } ) );
27 $c->detach;
29 $c->stash->{user_name} = $c->user->get_object->get_username;
30 $c->stash->{has_expression_atlas} = $c->config->{has_expression_atlas};
31 $c->stash->{expression_atlas_url} = $c->config->{expression_atlas_url};
32 $c->stash->{main_production_site_url} = $c->config->{main_production_site_url};
33 $c->stash->{site_project_name} = $c->config->{project_name};
34 $c->stash->{sgn_session_id} = $c->req->cookie('sgn_session_id');
35 $c->stash->{template} = '/tools/expression/expression_atlas.mas';