1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e1b310faa7a0/ Changeset: e1b310faa7a0 User: greg Date: 2013-12-12 17:46:46 Summary: Designate repositories that can be uninstalled in the Manage installed tool shed repositories grid in Galaxy. Affected #: 1 file diff -r 1af0dd28079a8c2501437aa753ef230b8229724d -r e1b310faa7a0b04d273ad1b0960ebe5050297412 lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py --- a/lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py +++ b/lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py @@ -31,6 +31,13 @@ latest_revision_tip_str = '' return '<img src="%s/june_2007_style/blue/ok_small.png" %s/>' % ( url_for( '/static' ), latest_revision_tip_str ) +def generate_repository_can_be_uninstalled_img_str( include_mouse_over=False ): + if include_mouse_over: + can_be_uninstalled_tip_str = 'class="icon-button" title="This repository can be uninstalled"' + else: + can_be_uninstalled_tip_str = '' + return '<img src="%s/images/fugue/toggle-bw.png" %s/>' % ( url_for( '/static' ), can_be_uninstalled_tip_str ) + def generate_revision_updates_img_str( include_mouse_over=False ): if include_mouse_over: revision_updates_tip_str = 'class="icon-button" title="Updates are available in the Tool Shed for this revision"' @@ -73,6 +80,8 @@ tool_shed_status_str += generate_includes_workflows_img_str( include_mouse_over=True ) else: tool_shed_status_str = generate_unknown_img_str( include_mouse_over=True ) + if tool_shed_repository.can_uninstall( trans.app ): + tool_shed_status_str += generate_repository_can_be_uninstalled_img_str( include_mouse_over=True ) return tool_shed_status_str @@ -210,6 +219,7 @@ legend_str += '%s This repository is deprecated in the Tool Shed<br/>' % generate_deprecated_repository_img_str() legend_str += '%s This repository contains exported workflows<br/>' % generate_includes_workflows_img_str() legend_str += '%s Unable to get information from the Tool Shed<br/>' % generate_unknown_img_str() + legend_str += '%s This repository can be uninstalled<br/>' % generate_repository_can_be_uninstalled_img_str() return legend_str 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.