Use explicit routes

This commit is contained in:
guerler
2017-06-14 18:48:35 -04:00
parent b9461eba40
commit c2ebb5776b
5 changed files with 11 additions and 10 deletions
+4 -4
View File
@@ -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,
});
});
};
};
+4 -3
View File
@@ -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