commit/galaxy-central: jgoecks: Show masthead links to Published Visualizations and Published Pages only if tracks/pages are enabled.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/22f067412d70/ changeset: r5187:22f067412d70 user: jgoecks date: 2011-03-07 17:43:51 summary: Show masthead links to Published Visualizations and Published Pages only if tracks/pages are enabled. affected #: 1 file (143 bytes) --- a/templates/webapps/galaxy/base_panels.mako Mon Mar 07 10:02:39 2011 -0500 +++ b/templates/webapps/galaxy/base_panels.mako Mon Mar 07 11:43:51 2011 -0500 @@ -70,10 +70,12 @@ [ 'Data Libraries', h.url_for( controller='/library', action='index') ], None, [ 'Published Histories', h.url_for( controller='/history', action='list_published' ) ], - [ 'Published Workflows', h.url_for( controller='/workflow', action='list_published' ) ], - [ 'Published Visualizations', h.url_for( controller='/visualization', action='list_published' ) ], - [ 'Published Pages', h.url_for( controller='/page', action='list_published' ) ] + [ 'Published Workflows', h.url_for( controller='/workflow', action='list_published' ) ] ] + if app.config.get_bool( 'enable_tracks', False ): + menu_options.append( [ 'Published Visualizations', h.url_for( controller='/visualization', action='list_published' ) ] ) + if app.config.get_bool( 'enable_pages', False ): + menu_options.append( [ 'Published Pages', h.url_for( controller='/page', action='list_published' ) ] ) tab( "shared", "Shared Data", h.url_for( controller='/library', action='index'), menu_options=menu_options ) %> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket