mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use explicit routes
This commit is contained in:
@@ -84,8 +84,8 @@ window.app = function app( options, bootstrapped ){
|
||||
'(/)user(/)(:form_id)' : 'show_user_form',
|
||||
'(/)workflow(/)' : 'show_workflows',
|
||||
'(/)pages(/)(:action_id)' : 'show_pages',
|
||||
'(/)histories(/)(:action_id)' : 'show_histories',
|
||||
'(/)datasets(/)(:action_id)' : 'show_datasets',
|
||||
'(/)histories(/)list(/)' : 'show_histories',
|
||||
'(/)datasets(/)list(/)' : 'show_datasets',
|
||||
'(/)workflow/configure_menu(/)' : 'show_configure_menu',
|
||||
'(/)custom_builds' : 'show_custom_builds'
|
||||
},
|
||||
@@ -121,7 +121,7 @@ window.app = function app( options, bootstrapped ){
|
||||
this.page.display( new UserPreferences.Forms( { form_id: form_id, user_id: Galaxy.params.id } ) );
|
||||
},
|
||||
|
||||
show_histories : function( action_id ) {
|
||||
show_histories : function() {
|
||||
this.page.display( new HistoryList.View() );
|
||||
},
|
||||
|
||||
@@ -211,4 +211,4 @@ window.app = function app( options, bootstrapped ){
|
||||
pushState : true,
|
||||
});
|
||||
});
|
||||
};
|
||||
};
|
||||
@@ -108,9 +108,10 @@ def paste_app_factory( global_conf, **kwargs ):
|
||||
webapp.add_client_route( '/user' )
|
||||
webapp.add_client_route( '/user/{form_id}' )
|
||||
webapp.add_client_route( '/workflow' )
|
||||
webapp.add_client_route( '/pages/{action_id}' )
|
||||
webapp.add_client_route( '/histories/{action_id}' )
|
||||
webapp.add_client_route( '/datasets/{action_id}' )
|
||||
webapp.add_client_route( '/pages/list' )
|
||||
webapp.add_client_route( '/pages/list_published' )
|
||||
webapp.add_client_route( '/histories/list' )
|
||||
webapp.add_client_route( '/datasets/list' )
|
||||
webapp.add_client_route( '/workflow/configure_menu' )
|
||||
webapp.add_client_route( '/custom_builds' )
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user