Skip to content

Commit

Permalink
Add client route for toolshed browsing grid
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Oct 4, 2017
1 parent 3d87afb commit 504e2aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/galaxy/scripts/apps/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ window.app = function app( options, bootstrapped ){
'(/)admin(/)groups' : 'show_groups',
'(/)admin(/)tool_versions' : 'show_tool_versions',
'(/)admin(/)quotas' : 'show_quotas',
'(/)admin(/)forms' : 'show_forms',
'(/)admin(/)form(/)(:form_id)' : 'show_form'
'(/)admin(/)form(/)(:form_id)' : 'show_form',
'(/)admin(/)repositories(/)browse' : 'browse_repositories'
},

authenticate: function( args, name ) {
Expand All @@ -42,6 +42,10 @@ window.app = function app( options, bootstrapped ){
this.page.display( new GridView( { url_base: Galaxy.root + 'admin/groups_list', url_data: Galaxy.params, dict_format: true } ) );
},

show_repositories: function() {
this.page.display( new GridView( { url_base: Galaxy.root + 'admin_toolshed/show', url_data: Galaxy.params, dict_format: true } ) );
},

show_tool_versions: function() {
this.page.display( new GridView( { url_base: Galaxy.root + 'admin/tool_versions_list', url_data: Galaxy.params, dict_format: true } ) );
},
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/webapps/galaxy/buildapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def paste_app_factory(global_conf, **kwargs):
webapp.add_client_route('/admin/tool_versions', 'admin')
webapp.add_client_route('/admin/quotas', 'admin')
webapp.add_client_route('/admin/form/{form_id}', 'admin')
webapp.add_client_route('/admin_toolshed/browse', 'admin')
webapp.add_client_route('/tours')
webapp.add_client_route('/tours/{tour_id}')
webapp.add_client_route('/user')
Expand Down

0 comments on commit 504e2aa

Please sign in to comment.