1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/8ada40b18414/ changeset: 8ada40b18414 user: dan date: 2013-02-06 20:59:46 summary: Add a confirm dialog when deprecating repositories in the Tool Shed. affected #: 2 files diff -r b3a7c8da804caa2330b393ddb2a1fcfefad4e41e -r 8ada40b184144447c5949bbbac3e2ec65cfaac58 lib/galaxy/webapps/community/controllers/repository.py --- a/lib/galaxy/webapps/community/controllers/repository.py +++ b/lib/galaxy/webapps/community/controllers/repository.py @@ -248,7 +248,8 @@ operations = [ grids.GridOperation( "Mark as deprecated", allow_multiple=False, condition=( lambda item: not item.deleted and not item.deprecated ), - async_compatible=False ), + async_compatible=False, + confirm="Are you sure that you want to deprecate this repository?" ), grids.GridOperation( "Mark as not deprecated", allow_multiple=False, condition=( lambda item: not item.deleted and item.deprecated ), diff -r b3a7c8da804caa2330b393ddb2a1fcfefad4e41e -r 8ada40b184144447c5949bbbac3e2ec65cfaac58 templates/webapps/community/repository/manage_repository.mako --- a/templates/webapps/community/repository/manage_repository.mako +++ b/templates/webapps/community/repository/manage_repository.mako @@ -97,7 +97,7 @@ <a class="action-button" href="${h.url_for( controller='repository', action='reset_all_metadata', id=trans.security.encode_id( repository.id ) )}">Reset all repository metadata</a> %endif %if can_deprecate: - <a class="action-button" href="${h.url_for( controller='repository', action='deprecate', id=trans.security.encode_id( repository.id ), mark_deprecated=True )}">Mark repository as deprecated</a> + <a class="action-button" href="${h.url_for( controller='repository', action='deprecate', id=trans.security.encode_id( repository.id ), mark_deprecated=True )}" confirm="Are you sure that you want to deprecate this repository?">Mark repository as deprecated</a> %endif %if can_undeprecate: <a class="action-button" href="${h.url_for( controller='repository', action='deprecate', id=trans.security.encode_id( repository.id ), mark_deprecated=False )}">Mark repository as not deprecated</a> 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.