commit/galaxy-central: greg: Display the Reset all metadata on repository option in the Resporitory Actions popup menu in more pages in the tool shed than the Manage repsitory page.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/1a4b56a78124/ Changeset: 1a4b56a78124 User: greg Date: 2013-05-14 20:30:08 Summary: Display the Reset all metadata on repository option in the Resporitory Actions popup menu in more pages in the tool shed than the Manage repsitory page. Affected #: 2 files diff -r 1cabd9fd107c14caa379e591ff3fea66c3cc5ce4 -r 1a4b56a78124b26103c61f8e6e736b088e65aa6d templates/webapps/tool_shed/common/repository_actions_menu.mako --- a/templates/webapps/tool_shed/common/repository_actions_menu.mako +++ b/templates/webapps/tool_shed/common/repository_actions_menu.mako @@ -1,6 +1,6 @@ <%inherit file="/base.mako"/> -<%def name="render_tool_shed_repository_actions( repository, repo=None, metadata=None, changeset_revision=None )"> +<%def name="render_tool_shed_repository_actions( repository, metadata=None, changeset_revision=None )"><% from tool_shed.util.review_util import can_browse_repository_reviews, changeset_revision_reviewed_by_user, get_review_by_repository_id_changeset_revision_user_id from tool_shed.util.shed_util_common import changeset_is_malicious @@ -54,11 +54,8 @@ else: can_download = False - if not is_deprecated: - if repo and len( repo ) > 0: - can_reset_all_metadata = True - else: - can_reset_all_metadata = False + if ( is_admin or ( trans.user and trans.user == repository.user ) ) and not repository.deleted and not repository.deprecated and not is_new: + can_reset_all_metadata = True else: can_reset_all_metadata = False diff -r 1cabd9fd107c14caa379e591ff3fea66c3cc5ce4 -r 1a4b56a78124b26103c61f8e6e736b088e65aa6d templates/webapps/tool_shed/repository/manage_repository.mako --- a/templates/webapps/tool_shed/repository/manage_repository.mako +++ b/templates/webapps/tool_shed/repository/manage_repository.mako @@ -88,7 +88,7 @@ ${container_javascripts()} </%def> -${render_tool_shed_repository_actions( repository, repo=repo, metadata=metadata, changeset_revision=changeset_revision )} +${render_tool_shed_repository_actions( repository, metadata=metadata, changeset_revision=changeset_revision )} %if message: ${render_msg( message, status )} 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)
-
commits-noreply@bitbucket.org