Skip to content

Commit

Permalink
Add route for custom builds
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Mar 15, 2017
1 parent 32a8633 commit 2153ef5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 19 deletions.
6 changes: 6 additions & 0 deletions client/galaxy/scripts/apps/analysis.js
Expand Up @@ -9,6 +9,7 @@ var jQuery = require( 'jquery' ),
PAGE = require( 'layout/page' ),
ToolForm = require( 'mvc/tool/tool-form' ),
UserPreferences = require( 'mvc/user/user-preferences' );
CustomBuilds = require( 'mvc/user/user-custom-builds' );
Tours = require( 'mvc/tours' );

/** define the 'Analyze Data'/analysis/main/home page for Galaxy
Expand Down Expand Up @@ -105,6 +106,7 @@ window.app = function app( options, bootstrapped ){
'(/)tours(/)(:tour_id)' : 'show_tours',
'(/)user(/)' : 'show_user',
'(/)user(/)(:form_id)' : 'show_user_form',
'(/)custom_builds' : 'show_custom_builds'
},

show_tours : function( tour_id ){
Expand All @@ -123,6 +125,10 @@ window.app = function app( options, bootstrapped ){
centerPanel.display( new UserPreferences.Forms( { form_id: form_id, user_id: Galaxy.params.id } ) );
},

show_custom_builds : function( form_id ) {
centerPanel.display( new CustomBuilds.View() );
},

/** */
home : function( params ){
// TODO: to router, remove Globals
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/webapps/galaxy/buildapp.py
Expand Up @@ -110,6 +110,7 @@ def paste_app_factory( global_conf, **kwargs ):
webapp.add_client_route( '/tours/{tour_id}' )
webapp.add_client_route( '/user' )
webapp.add_client_route( '/user/{form_id}' )
webapp.add_client_route( '/custom_builds' )

# ==== Done
# Indicate that all configuration settings have been provided
Expand Down
24 changes: 12 additions & 12 deletions static/scripts/bundled/analysis.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/analysis.bundled.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions static/scripts/bundled/libs.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

0 comments on commit 2153ef5

Please sign in to comment.